/**
* 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;
}
*/
public function nodeIsActivated () {
// Create the new state instance
- NodeStateFactory::createNodeStateInstanceByName('active', $this->getNodeInstance());
+ NodeStateFactory::createNodeStateInstanceByName('active');
}
}