]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/stacker/file/class_
Continued:
[core.git] / framework / main / classes / stacker / file / class_
index b3a3934a296b64453879dd106e456f45f9b78d9c..091d752601158452d3ce2a9ef31aa9ecb085917a 100644 (file)
@@ -1,14 +1,13 @@
 <?php
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
+
 /**
  * A ??? file-based stack
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
-<<<<<<< HEAD:framework/main/classes/stacker/file/class_
- * @copyright  Copyright (c) 2017 Core Developer Team
-=======
- * @copyright  Copyright (c) 2016 Core Developer Team
->>>>>>> Some updates::inc/main/classes/stacker/file/class_
+ * @copyright  Copyright (c) 2023 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -31,7 +30,7 @@ class ???FileStack extends BaseFileStack implements StackableFile, Registerable
         *
         * @return      void
         */
-       protected function __construct () {
+       private function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
        }
@@ -62,7 +61,7 @@ class ???FileStack extends BaseFileStack implements StackableFile, Registerable
         * @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);
        }
 
        /**
@@ -74,7 +73,7 @@ class ???FileStack extends BaseFileStack implements StackableFile, Registerable
         * @throws      EmptyStackerException   If the named stacker is empty
         */
        public function popNamed ($stackerName) {
-               $this->partialStub('stackerName=' . $stackerName);
+               DebugMiddleware::getSelfInstance()->partialStub('stackerName=' . $stackerName);
        }
 
        /**
@@ -86,7 +85,7 @@ class ???FileStack extends BaseFileStack implements StackableFile, Registerable
         * @throws      EmptyStackerException   If the named stacker is empty
         */
        public function getNamed ($stackerName) {
-               $this->partialStub('stackerName=' . $stackerName);
+               DebugMiddleware::getSelfInstance()->partialStub('stackerName=' . $stackerName);
        }
 
        /**
@@ -96,7 +95,7 @@ class ???FileStack extends BaseFileStack implements StackableFile, Registerable
         * @return      void
         */
        public function seek ($seekPosition) {
-               $this->partialStub('seekPosition=' . $seekPosition);
+               DebugMiddleware::getSelfInstance()->partialStub('seekPosition=' . $seekPosition);
        }
 
        /**
@@ -105,7 +104,7 @@ class ???FileStack extends BaseFileStack implements StackableFile, Registerable
         * @return      $size   Size (in bytes) of file
         */
        public function size () {
-               $this->partialStub();
+               DebugMiddleware::getSelfInstance()->partialStub();
        }
 
 }