]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/factories/states/cruncher/class_CruncherStateFactory.php
Continued:
[hub.git] / application / hub / main / factories / states / cruncher / class_CruncherStateFactory.php
index 2d2700a5cc6f09f3f9f468410a6388a233fc80a7..ce1963bc563f998e8c6f30a97893a38578fc2fd1 100644 (file)
@@ -36,9 +36,9 @@ class CruncherStateFactory extends ObjectFactory {
         * Creates an instance of a configurable cruncher state and sets it in the
         * given cruncher instance.
         *
-        * @param       $stateName              Name of the state
+        * @param       $stateName                      Name of the state
         * @param       $cruncherInstance       A CruncherHelper class instance
-        * @return      $stateInstance  A Stateable class instance
+        * @return      $stateInstance          A Stateable class instance
         */
        public static final function createCruncherStateInstanceByName ($stateName, CruncherHelper $cruncherInstance) {
                // Then construct the class' configuraton entry
@@ -47,6 +47,9 @@ class CruncherStateFactory extends ObjectFactory {
                // Get a class from that configuration entry
                $stateInstance = self::createObjectByConfiguredName($className, array($cruncherInstance));
 
+               // Debug message
+               self::createDebugInstance(__CLASS__)->debugOutput('CRUNCHER-STATE-FACTORY[' . __METHOD__ . ':' . __LINE__ . ']: Cruncher state has changed from ' . $nodeInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
+
                // Once we have that state, set it in the cruncher instance
                $cruncherInstance->setStateInstance($stateInstance);