]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/states/node/class_BaseNodeState.php
Some stuff needs to be renamed to match better naming: 'announced' is not true
[hub.git] / application / hub / main / states / node / class_BaseNodeState.php
index 3f3974dd6397ed2d861ec3ef6e806e8d317019d9..90e8fbd3a7a749f7af19ecd63b0549b657791989 100644 (file)
@@ -55,9 +55,9 @@ class BaseNodeState extends BaseState {
         * @return      void
         * @throws      InvalidStateException   If the state is not 'active' and not 'announcing'
         */
-       public function validateNodeStateIsActiveOrAnnounced () {
+       public function validateNodeStateIsActiveOrAnnouncing () {
                // Just compare it...
-               if ((!$this instanceof NodeActiveState) && (!$this instanceof NodeAnnouncedState)) {
+               if ((!$this instanceof NodeActiveState) && (!$this instanceof NodeAnnouncingState)) {
                        // Throw the exception
                        throw new InvalidStateException($this, self::EXCEPTION_INVALID_STATE);
                } // END - if