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

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -