Rearrange code: put getters and setters at bottom

Perhaps I'm not fully understanding how to configure the code rearranger, but while I can get it to group getters and setters together, I can't figure out how to place the grouped getters and setters at the end of the class. Is this possible?

1 comment
Comment actions Permalink

You may try enabling the "order by name" option in "method, modifiers" default rule in "Settings/Preferences | Editor | Code Style | PHP > Arrangement":
I have just tried it and in my case, getters/setters went to the end despite the name. There is an obvious drawback though: other methods will be sorted by name too (but placed before getters/setters).

0

Please sign in to leave a comment.