]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/file_directories/binary/stack/class_StackFile.php
Renamed Registry -> GenericRegistry to make it clear that this registry does
[core.git] / framework / main / classes / file_directories / binary / stack / class_StackFile.php
index cb557be76298d5642269d3eb7a7cbdd90953da1a..444302ba74e7daa317816b0546a2ebe96cb325ab 100644 (file)
@@ -1,10 +1,14 @@
 <?php
 // Own namespace
-namespace CoreFramework\Filesystem\Stack;
+namespace Org\Mxchange\CoreFramework\Filesystem\Stack;
 
 // Import framework stuff
-use CoreFramework\Filesystem\Block;
-use CoreFramework\Filesystem\File\BaseBinaryFile;
+use Org\Mxchange\CoreFramework\Filesystem\Block;
+use Org\Mxchange\CoreFramework\Filesystem\File\BaseBinaryFile;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+
+// Import SPL stuff
+use \SplFileInfo;
 
 /**
  * A stack file class
@@ -42,11 +46,11 @@ class StackFile extends BaseBinaryFile implements Block {
        /**
         * Creates an instance of this File class and prepares it for usage
         *
-        * @param       $fileName               Name of the stack file
+        * @param       $infoInstance   An instance of a SplFileInfo class
         * @param       $blockInstance  An instance of a Block class
         * @return      $fileInstance   An instance of this File class
         */
-       public final static function createStackFile ($fileName, Block $blockInstance) {
+       public final static function createStackFile (SplFileInfo $infoInstance, Block $blockInstance) {
                // Get a new instance
                $fileInstance = new StackFile();
 
@@ -54,7 +58,7 @@ class StackFile extends BaseBinaryFile implements Block {
                $fileInstance->setBlockInstance($blockInstance);
 
                // Init this abstract file
-               $fileInstance->initFile($fileName);
+               $fileInstance->initFile($infoInstance);
 
                // Return the prepared instance
                return $fileInstance;