]> git.mxchange.org Git - core.git/commitdiff
The ObjectFactory may now be extended e.g. done in hub project by a NodeStateFactory...
authorRoland Häder <roland@mxchange.org>
Wed, 27 Jan 2010 01:48:25 +0000 (01:48 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 27 Jan 2010 01:48:25 +0000 (01:48 +0000)
inc/classes/main/factories/objects/class_ObjectFactory.php

index 4a6f0d42c7324fce4d77c9b83bf08dd4b3897886..1b51c84ca5d0d8b8c312beae1a7f388e209a2435 100644 (file)
@@ -30,11 +30,12 @@ class ObjectFactory extends BaseFactory {
        /**
         * Protected constructor
         *
+        * @param       $className      Name of this class
         * @return      void
         */
-       protected function __construct () {
+       protected function __construct ($className = __CLASS__) {
                // Call parent constructor
-               parent::__construct(__CLASS__);
+               parent::__construct($className);
        }
 
        /**