From: Roland Häder Date: Wed, 3 Jan 2018 23:33:43 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=529abe2ebb98df6cd980b4f8225bdd3e4f1c83c8;p=core.git Continued: - more rewrites towards SplFileInfo Signed-off-by: Roland Häder --- diff --git a/framework/main/classes/file_directories/binary/index/class_IndexFile.php b/framework/main/classes/file_directories/binary/index/class_IndexFile.php index 95aef97e..958792df 100644 --- a/framework/main/classes/file_directories/binary/index/class_IndexFile.php +++ b/framework/main/classes/file_directories/binary/index/class_IndexFile.php @@ -7,6 +7,9 @@ use Org\Mxchange\CoreFramework\Filesystem\Block; use Org\Mxchange\CoreFramework\Filesystem\File\BaseBinaryFile; use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException; +// Import SPL stuff +use \SplFileInfo; + /** * An index file class * @@ -43,11 +46,11 @@ class IndexFile extends BaseBinaryFile implements Block { /** * Creates an instance of this File class and prepares it for usage * - * @param $fileName Name of the index file + * @param $fileInfoInstance 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 createIndexFile ($fileName, Block $blockInstance) { + public final static function createIndexFile (SplFileInfo $fileInfoInstance, Block $blockInstance) { // Get a new instance $fileInstance = new IndexFile(); @@ -55,7 +58,7 @@ class IndexFile extends BaseBinaryFile implements Block { $fileInstance->setBlockInstance($blockInstance); // Init this abstract file - $fileInstance->initFile($fileName); + $fileInstance->initFile($fileInfoInstance); // Return the prepared instance return $fileInstance;