X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fstacker%2Fclass_;h=a534112638750efc6e6cbc5142ec3b967c21d059;hp=c3c188ed2f2c8865658a28735ebf6f61817ff99d;hb=HEAD;hpb=a60894f1d6ef33613d2d0351075aa07aa257f304 diff --git a/framework/main/classes/stacker/class_ b/framework/main/classes/stacker/class_ index c3c188ed..b8e5aa09 100644 --- a/framework/main/classes/stacker/class_ +++ b/framework/main/classes/stacker/class_ @@ -1,17 +1,18 @@ * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2023 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -34,7 +35,7 @@ class ???Stacker extends BaseStacker implements Stackable { * * @return void */ - protected function __construct () { + private function __construct () { // Call parent constructor parent::__construct(__CLASS__); } @@ -65,7 +66,7 @@ class ???Stacker extends BaseStacker implements Stackable { * @throws StackerFullException If the stack is full */ public function pushNamed ($stackerName, $value) { - $this->partialStub('stackerName=' . $stackerName . ',value[' . gettype($value) . ']=' . $value); + DebugMiddleware::getSelfInstance()->partialStub('stackerName=' . $stackerName . ',value[' . gettype($value) . ']=' . $value); } /** @@ -77,7 +78,7 @@ class ???Stacker extends BaseStacker implements Stackable { * @throws EmptyStackerException If the named stacker is empty */ public function popNamed ($stackerName) { - $this->partialStub('stackerName=' . $stackerName); + DebugMiddleware::getSelfInstance()->partialStub('stackerName=' . $stackerName); } /** @@ -89,7 +90,7 @@ class ???Stacker extends BaseStacker implements Stackable { * @throws EmptyStackerException If the named stacker is empty */ public function getNamed ($stackerName) { - $this->partialStub('stackerName=' . $stackerName); + DebugMiddleware::getSelfInstance()->partialStub('stackerName=' . $stackerName); } }