I am writing a PHP class 450 lines long and contains 14 static methods and 4 static properties, as well as 6 constants (and private __construct() and __clone() ).
I am wondering if I am doing something wrong, is this a cool evil?
When you use a class, you always call one method, for example:
MyClass::coolMethod();
and then you leave him alone, so it seems that it would be foolish to make him constructive?
Actually there isnβt much point in creating objects from it, because it is more like a tool that contains several methods that you can simply call directly.
Actually, of these 14 methods, 7 of them are publicly available - the rest are closed to the class that will be used.
object oop php god-object
Tower
source share