]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/states/node/announced/class_NodeAnnouncedState.php
Added NodeAnnouncementCompletedState which will be the next after 'announced' to...
[hub.git] / application / hub / main / states / node / announced / class_NodeAnnouncedState.php
index ab9b0e6d4c6aaee085d2494aef9e315217aaf728..1a3200101c83ce1c9af4a4ccf7e9961414ab17ac 100644 (file)
@@ -51,6 +51,17 @@ class NodeAnnouncedState extends BaseNodeState implements Stateable {
                // Return the prepared instance
                return $stateInstance;
        }
+
+       /**
+        * Changes the state if the announcement (to bootstrap node) was
+        * successful.
+        *
+        * @return      void
+        */
+       public function nodeAnnouncementSuccessful () {
+               // The node's announcement was successful
+               NodeStateFactory::createNodeStateInstanceByName('announcement_completed', $this->getNodeInstance());
+       }
 }
 
 // [EOF]