]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/states/node/virgin/class_NodeVirginState.php
Fixed a lot broken stuff:
[hub.git] / application / hub / main / states / node / virgin / class_NodeVirginState.php
index adc1e708a846a797691d332e77152738ac0c0696..2d83f58e15952e0da5b796ce2704dc490a70b4f0 100644 (file)
@@ -38,16 +38,12 @@ class NodeVirginState extends BaseNodeState implements Stateable {
        /**
         * Creates an instance of this class
         *
-        * @param       $nodeInstance   An instance of a NodeHelper class
         * @return      $stateInstance  An instance of a Stateable class
         */
-       public static final function createNodeVirginState (NodeHelper $nodeInstance) {
+       public static final function createNodeVirginState () {
                // Get new instance
                $stateInstance = new NodeVirginState();
 
-               // Set the node instance
-               $stateInstance->setNodeInstance($nodeInstance);
-
                // Return the prepared instance
                return $stateInstance;
        }
@@ -62,7 +58,7 @@ class NodeVirginState extends BaseNodeState implements Stateable {
         */
        public function nodeIsActivated () {
                // Create the new state instance
-               NodeStateFactory::createNodeStateInstanceByName('active', $this->getNodeInstance());
+               NodeStateFactory::createNodeStateInstanceByName('active');
        }
 
 }