X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Ffactories%2Fobjects%2Fclass_ObjectFactory.php;h=b84f55a221bf493e63a2357f96801863e6571db2;hp=08a9352b5406a83db9b73354da03f97da7afb406;hb=ae54dca581224b5fd6da5f90bb32f07eec43845e;hpb=45af8ed7a30c97088f29f0a2bb6ffcd4ab1ee5d7 diff --git a/inc/classes/main/factories/objects/class_ObjectFactory.php b/inc/classes/main/factories/objects/class_ObjectFactory.php index 08a9352b..b84f55a2 100644 --- a/inc/classes/main/factories/objects/class_ObjectFactory.php +++ b/inc/classes/main/factories/objects/class_ObjectFactory.php @@ -22,11 +22,6 @@ * along with this program. If not, see . */ class ObjectFactory extends BaseFactory { - /** - * Total objects generated - */ - private static $total = 0; - /** * Protected constructor * @@ -70,8 +65,8 @@ class ObjectFactory extends BaseFactory { // Run the user function $objectInstance = call_user_func_array(array($className, $methodName), $args); - // Count generated objects up - self::$total++; + // Count this one up + self::countObject($className); // Return the prepared instance return $objectInstance; @@ -94,15 +89,6 @@ class ObjectFactory extends BaseFactory { // Return the instance return $objectInstance; } - - /** - * Static getter for total object count - * - * @return $total Total amount of generated objects - */ - public static final function getTotal () { - return self::$total; - } } // [EOF]