X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=application%2Fhub%2Fmain%2Fstates%2Fnode%2Fvirgin%2Fclass_NodeVirginState.php;h=65a3fc6ad1bed347e14227d6aabb16b8fc54f820;hb=aa4ac5d61eab8540e9902396998f3f53718eeaf5;hp=aeb122358db4f52d67575639eadf2f768a759836;hpb=fd893e5f5b7b8369672f7d57aa2f24488f5be65b;p=hub.git diff --git a/application/hub/main/states/node/virgin/class_NodeVirginState.php b/application/hub/main/states/node/virgin/class_NodeVirginState.php index aeb122358..65a3fc6ad 100644 --- a/application/hub/main/states/node/virgin/class_NodeVirginState.php +++ b/application/hub/main/states/node/virgin/class_NodeVirginState.php @@ -1,6 +1,6 @@ * @version 0.0.0 @@ -21,7 +21,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class NodeVirginState extends BaseState implements NodeStateable { +class NodeVirginState extends BaseNodeState implements Stateable { /** * Protected constructor * @@ -39,14 +39,14 @@ class NodeVirginState extends BaseState implements NodeStateable { * Creates an instance of this class * * @param $nodeInstance An instance of a NodeHelper class - * @return $stateInstance An instance of a NodeStateable class + * @return $stateInstance An instance of a Stateable class */ public final static function createNodeVirginState (NodeHelper $nodeInstance) { // Get new instance $stateInstance = new NodeVirginState(); // Debug message - $stateInstance->debugOutput("NODE-STATE: Has changed from " . $nodeInstance->getPrintableState() . " to " . $stateInstance->getStateName() . "."); + $stateInstance->debugOutput('NODE-STATE: Has changed from ' . $nodeInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.'); // Set the node instance $stateInstance->setNodeInstance($nodeInstance); @@ -56,7 +56,7 @@ class NodeVirginState extends BaseState implements NodeStateable { } /** - * Change the state to 'activate' when the hub has initialized all + * Change the state to 'active' when the hub has initialized all * listeners, tasks, queues, etc. An active hub does not imply that it * can be reached from outside so we have to deal with that state with * yet another state class. @@ -65,7 +65,7 @@ class NodeVirginState extends BaseState implements NodeStateable { */ public function nodeIsActivated () { // Create the new state instance - NodeStateFactory::createNodeStateInstanceByName('active', $this->getNodeInstance()); + StateFactory::createStateInstanceByName('active', $this->getNodeInstance()); } }