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 4a6f0d4..1b51c84 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);
        }
 
        /**