Continued:
[core.git] / framework / main / classes / stacker / file / class_
index 952279a2827b85105b6700f13ec22e643887dcb4..091d752601158452d3ce2a9ef31aa9ecb085917a 100644 (file)
@@ -1,10 +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
- * @copyright  Copyright (c) 2017 Core Developer Team
+ * @copyright  Copyright (c) 2023 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -27,7 +30,7 @@ class ???FileStack extends BaseFileStack implements StackableFile, Registerable
         *
         * @return      void
         */
-       protected function __construct () {
+       private function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
        }
@@ -58,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);
        }
 
        /**
@@ -70,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);
        }
 
        /**
@@ -82,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);
        }
 
        /**
@@ -92,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);
        }
 
        /**
@@ -101,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();
        }
 
 }