X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fstacker%2Fclass_BaseStacker.php;h=b029e4e2ca920ed0fe2b06fb01be3157e8b0c8d5;hp=3a8bcc028fa659817c4ea8760367bc202f908d35;hb=4bbb4bc54c77ee0c0e1c9d65bb082aadee5df854;hpb=4b88c118b615335d06bd74e444173d21aef4406c diff --git a/inc/classes/main/stacker/class_BaseStacker.php b/inc/classes/main/stacker/class_BaseStacker.php index 3a8bcc02..b029e4e2 100644 --- a/inc/classes/main/stacker/class_BaseStacker.php +++ b/inc/classes/main/stacker/class_BaseStacker.php @@ -51,7 +51,7 @@ class BaseStacker extends BaseFrameworkSystem { * @return void * @throws AlreadyInitializedStackerException If the stack is already initialized */ - protected final function initStacker ($stackerName) { + public final function initStacker ($stackerName) { // Is the stack already initialized? if ($this->isStackInitialized($stackerName)) { // Then throw the exception @@ -114,7 +114,7 @@ class BaseStacker extends BaseFrameworkSystem { throw new NoStackerException(array($this, $stackerName), self::EXCEPTION_NO_STACKER_FOUND); } // END - if - // So, is the stack full? + // So, is the stack empty? $isFull = (($this->getStackCount($stackerName)) == 0); // Return result @@ -128,7 +128,7 @@ class BaseStacker extends BaseFrameworkSystem { * @return $count Size of stack (array count) * @throws NoStackerException If given stack is missing */ - protected final function getStackCount ($stackerName) { + public final function getStackCount ($stackerName) { // Is the stack not yet initialized? if (!$this->isStackInitialized($stackerName)) { // Throw an exception