X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Findex%2Fclass_;h=5ddd77d7c9e2b0cc3e2016d33fa0968f3b4a6c18;hp=a130144f05101e6c6a8878e7d8c2a4394b88eaf2;hb=refs%2Fheads%2Fmaster;hpb=adcdfc000eba8fac128786adcb8cb480085e7e76 diff --git a/framework/main/classes/index/class_ b/framework/main/classes/index/class_ index a130144f..5ddd77d7 100644 --- a/framework/main/classes/index/class_ +++ b/framework/main/classes/index/class_ @@ -1,17 +1,20 @@ * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2020 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2023 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -34,7 +37,7 @@ class ???Index extends BaseIndex implements Indexable, Registerable { * * @return void */ - protected function __construct () { + private function __construct () { // Call parent constructor parent::__construct(__CLASS__); } @@ -45,12 +48,12 @@ class ???Index extends BaseIndex implements Indexable, Registerable { * @param $fileName Name of the file stack to create an index file for * @return $indexInstance An instance of this Index class */ - public final static function create???Index ($fileName) { + public final static function create???Index (SplFileInfo $fileInfoInstance) { // Get a new instance $indexInstance = new ???Index(); // Initialize index - $indexInstance->initIndex($fileName); + $indexInstance->initIndex($fileInfoInstance); // Return the prepared instance return $indexInstance;