Renamed Registry -> GenericRegistry to make it clear that this registry does
[core.git] / framework / main / classes / stacker / file / fifo / class_FiFoFileStack.php
index a4630c6a585afd71ef33d927f9e850343fed8d25..9994e38cb3ed071f05f68af972d75c9c3051c73d 100644 (file)
@@ -1,9 +1,15 @@
 <?php
 // Own namespace
-namespace CoreFramework\Stack\Filesystem;
+namespace Org\Mxchange\CoreFramework\Stacker\Filesystem;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Filesystem\Block\CalculatableBlock;
+use Org\Mxchange\CoreFramework\Filesystem\Stack\StackableFile;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Stacker\Filesystem\BaseFileStacker;
+
+// Import SPL stuff
+use \SplFileInfo;
 
 /**
  * A FiFo file-based stack
@@ -41,16 +47,16 @@ class FiFoFileStack extends BaseFileStack implements StackableFile, Calculatable
        /**
         * Creates an instance of this class
         *
-        * @param       $fileName               Absolute Name of stack file
+        * @param       $fileInfoInstance       An instance of a SplFileInfo class
         * @param       $type                   Type of this stack (e.g. url_source for URL sources)
-        * @return      $stackInstance  An instance of a Stackable class
+        * @return      $stackInstance  An instance of a StackableFile class
         */
-       public final static function createFiFoFileStack ($fileName, $type) {
+       public final static function createFiFoFileStack (SplFileInfo $fileInfoInstance, $type) {
                // Get new instance
                $stackInstance = new FiFoFileStack();
 
                // Init this stack
-               $stackInstance->initFileStack($fileName, $type);
+               $stackInstance->initFileStack($fileInfoInstance, $type);
 
                // Return the prepared instance
                return $stackInstance;