php - OOP and single usage methods -




i'm in process of refactoring wordpress plugin follow oop principles , came across couple of situations have method serves single purpose.

it doesn't take in arguments (currently) , it's job return modified array of data.

is acceptable leave in class?

or should refactored reusable?





wiki

Comments