]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/states/node/announced/class_NodeAnnouncingState.php
Fixed a lot broken stuff:
[hub.git] / application / hub / main / states / node / announced / class_NodeAnnouncingState.php
index 0b65b629ae6e54a974c891f004ccff8807ad1c48..d8b114eaa80e0c9594cb234a8c29890593ed1f81 100644 (file)
@@ -38,16 +38,12 @@ class NodeAnnouncingState 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 createNodeAnnouncingState (NodeHelper $nodeInstance) {
+       public static final function createNodeAnnouncingState () {
                // Get new instance
                $stateInstance = new NodeAnnouncingState();
 
-               // Set the node instance
-               $stateInstance->setNodeInstance($nodeInstance);
-
                // Return the prepared instance
                return $stateInstance;
        }
@@ -60,7 +56,7 @@ class NodeAnnouncingState extends BaseNodeState implements Stateable {
         */
        public function nodeAnnouncementSuccessful () {
                // The node's announcement was successful
-               NodeStateFactory::createNodeStateInstanceByName('announcement_completed', $this->getNodeInstance());
+               NodeStateFactory::createNodeStateInstanceByName('announcement_completed');
        }
 }