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

Popular posts from this blog

elasticsearch - what is the equivalent data type for geo_point in hibernate search? -

firebase - How to wait value in Ionic 2 -

Jenkins: find build number for git commit -