]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/states/node/init/class_NodeInitState.php
State pattern added, hub continued (sorry, I let it lay around uncommitted for long...
[hub.git] / application / hub / main / states / node / init / class_NodeInitState.php
index 4d64f2e8aeb145b2d886abe3db3e8d5e425cb1dd..2d0092d2a6c84445417a9572072d6de55b7ed749 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * A Init node state class
+ * A init node state class
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
@@ -21,7 +21,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-class NodeInitState extends BaseState implements NodeStateable {
+class NodeInitState extends BaseNodeState implements Stateable {
        /**
         * Protected constructor
         *
@@ -39,14 +39,14 @@ class NodeInitState extends BaseState implements NodeStateable {
         * Creates an instance of this class
         *
         * @param       $nodeInstance   An instance of a NodeHelper class
-        * @return      $stateInstance  An instance of a NodeStateable class
+        * @return      $stateInstance  An instance of a Stateable class
         */
        public final static function createNodeInitState (NodeHelper $nodeInstance) {
                // Get new instance
                $stateInstance = new NodeInitState();
 
                // Debug message
-               $stateInstance->debugOutput("NODE-STATE: Has changed from " . $nodeInstance->getPrintableState() . " to " . $stateInstance->getStateName() . ".");
+               $stateInstance->debugOutput('NODE-STATE: Has changed from ' . $nodeInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
 
                // Set the node instance
                $stateInstance->setNodeInstance($nodeInstance);
@@ -61,7 +61,7 @@ class NodeInitState extends BaseState implements NodeStateable {
         */
        public function nodeGeneratedSessionId () {
                // Create the new state instance
-               NodeStateFactory::createNodeStateInstanceByName('virgin', $this->getNodeInstance());
+               StateFactory::createStateInstanceByName('virgin', $this->getNodeInstance());
        }
 
 }