/**
* 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;
}
*/
public function nodeAnnouncementSuccessful () {
// The node's announcement was successful
- NodeStateFactory::createNodeStateInstanceByName('announcement_completed', $this->getNodeInstance());
+ NodeStateFactory::createNodeStateInstanceByName('announcement_completed');
}
}