]> git.mxchange.org Git - core.git/blobdiff - framework/main/interfaces/block/class_Block.php
Continued:
[core.git] / framework / main / interfaces / block / class_Block.php
index bc3b9d43a5c083e95e26300d544442d8fa3a3c5d..9f593ecc7a23e872944eec16496d7725f35f4ffa 100644 (file)
@@ -72,7 +72,7 @@ interface Block extends FrameworkInterface {
         * @param       $headerSize             Size of file header
         * @return      void
         */
-       function setHeaderSize ($headerSize);
+       function setHeaderSize (int $headerSize);
 
        /**
         * Getter for header array
@@ -117,7 +117,7 @@ interface Block extends FrameworkInterface {
         * @param       $value          Value to be added to the stack
         * @return      $data           Hash and gap position
         */
-       function writeValueToFile ($groupId, $rawData);
+       function writeValueToFile (string $groupId, string $rawData);
 
        /**
         * Writes given raw data to the file and returns a gap position and length
@@ -127,7 +127,7 @@ interface Block extends FrameworkInterface {
         * @param       $encoded        Encoded value to be written to the file
         * @return      $data           Gap position and length of the raw data
         */
-       function writeDataToFreeGap ($groupId, $hash, $encoded);
+       function writeDataToFreeGap (string $groupId, string $hash, string $encoded);
 
        /**
         * Writes data at given position
@@ -137,7 +137,7 @@ interface Block extends FrameworkInterface {
         * @param       $flushHeader    Whether to flush the header (default: flush)
         * @return      void
         */
-       function writeData ($seekPosition, $data, $flushHeader = true);
+       function writeData (int $seekPosition, string $data, bool $flushHeader = true);
 
        /**
         * Searches for next suitable gap the given length of data can fit in
@@ -146,6 +146,6 @@ interface Block extends FrameworkInterface {
         * @param       $length                 Length of raw data
         * @return      $seekPosition   Found next gap's seek position
         */
-       function searchNextGap ($length);
+       function searchNextGap (int $length);
 
 }