]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/index/class_
Continued:
[core.git] / framework / main / classes / index / class_
index 4bda48c0dd07271df918864b14eb6631b6128685..5ddd77d7c9e2b0cc3e2016d33fa0968f3b4a6c18 100644 (file)
@@ -1,17 +1,20 @@
 <?php
 // Own namespace
-namespace CoreFramework\Index\!!!;
+namespace Org\Mxchange\CoreFramework\Index\!!!;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Index\BaseIndex;
 use Org\Mxchange\CoreFramework\Index\Indexable;
 
+// Import SPL stuff
+use \SplFileInfo;
+
 /**
  * A ??? index class
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 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;