<?php
// Own namespace
-namespace CoreFramework\Index\Stack;
+namespace Org\Mxchange\CoreFramework\Index\Stack;
// Import framework stuff
-use CoreFramework\Index\BaseIndex;
-use CoreFramework\Index\Indexable;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Stack\Index\IndexableStack;
+use Org\Mxchange\CoreFramework\Index\BaseIndex;
+use Org\Mxchange\CoreFramework\Index\Indexable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Stacker\Filesystem\BaseFileStacker;
+use Org\Mxchange\CoreFramework\Stacker\Index\IndexableStack;
+
+// Import SPL stuff
+use \SplFileInfo;
/**
* A FileStack index class
/**
* Creates an instance of this Index class and prepares it for usage
*
- * @param $fileName Name of the file stack to create an index file for
+ * @param $fileInfoInstance An instance of a SplFileInfo class
* @return $indexInstance An instance of this Index class
*/
- public final static function createFileStackIndex ($fileName) {
+ public final static function createFileStackIndex (SplFileInfo $fileInfoInstance) {
// Get a new instance
$indexInstance = new FileStackIndex();
// Initialize index
- $indexInstance->initIndex($fileName);
+ $indexInstance->initIndex($fileInfoInstance);
// Return the prepared instance
return $indexInstance;