]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/file_directories/binary/class_BaseBinaryFile.php
Continued:
[core.git] / framework / main / classes / file_directories / binary / class_BaseBinaryFile.php
index 6a128b755d6fc9936760f4bc1892c3eb86279d39..c2ac5ddf0fd8bc6cdd34d4fb9682de5b00df1c70 100644 (file)
@@ -132,6 +132,11 @@ abstract class BaseBinaryFile extends BaseAbstractFile {
         */
        private $currentBlock = '';
 
+       /**
+        * An instance of a Block class
+        */
+       private $blockInstance = NULL;
+
        /**
         * Protected constructor
         *
@@ -146,6 +151,25 @@ abstract class BaseBinaryFile extends BaseAbstractFile {
                $this->initCountersGapsArray();
        }
 
+       /**
+        * Setter for Block instance
+        *
+        * @param       $blockInstance  An instance of an Block class
+        * @return      void
+        */
+       protected final function setBlockInstance (Block $blockInstance) {
+               $this->blockInstance = $blockInstance;
+       }
+
+       /**
+        * Getter for Block instance
+        *
+        * @return      $blockInstance  An instance of an Block class
+        */
+       public final function getBlockInstance () {
+               return $this->blockInstance;
+       }
+
        /**
         * Checks whether the abstracted file only contains gaps by counting all
         * gaps' bytes together and compare it to total length.