]> git.mxchange.org Git - shipsimu.git/blobdiff - ship-simu/application/selector/class_ApplicationSelector.php
TODO: We should find something better than BaseFrameworkSystem as a type-hint
[shipsimu.git] / ship-simu / application / selector / class_ApplicationSelector.php
index 51278ea4125da8223de2599cc19175cecefbb480..bd3a86b78133de509c6d7cbc1d73a56d9045cfb7 100644 (file)
@@ -74,9 +74,9 @@ class ApplicationSelector extends BaseFrameworkSystem {
         *
         * @param               $langInstance           The language sub-system: LanguageSystem
         * @param               $fileIOInstance The file I/O instance
-        * @return      $selInstance            An instance of ApplicationSelector
+        * @return              $selInstance            An instance of ApplicationSelector
         */
-       public static function createApplicationSelector ($langInstance, $fileIOInstance) {
+       public static function createApplicationSelector (ManageableLanguage $langInstance, FileIOHandler $fileIOInstance) {
                // Get a new instance
                $selInstance = new ApplicationSelector();
 
@@ -132,14 +132,14 @@ class ApplicationSelector extends BaseFrameworkSystem {
         * application helper instance (ApplicationHelper by default).
         *
         * @param               $appInstance    An application helper instance
-        * @return      $tplEngine      The template engine instance
-        * @throws      NullPointerException    If the template engine could not
-        *                                                              be initialized
-        * @throws      NoObjectException               If $tplEngine is not an object
-        * @throws      MissingMethodException  If $tplEngine misses a required
-        *                                                              method 'loadWebTemplate()'
+        * @return              $tplEngine      The template engine instance
+        * @throws              NullPointerException    If the template engine could not
+        *                                                                              be initialized
+        * @throws              NoObjectException               If $tplEngine is not an object
+        * @throws              MissingMethodException  If $tplEngine misses a required
+        *                                                                              method 'loadWebTemplate()'
         */
-       private function prepareTemplateEngine ($appInstance) {
+       private function prepareTemplateEngine (BaseFrameworkSystem $appInstance) {
                // Generate FQFN for all application templates
                $fqfn = sprintf("%s%s/%s/%s",
                        PATH,
@@ -231,7 +231,7 @@ class ApplicationSelector extends BaseFrameworkSystem {
         *
         * @param               $tplEngine      An instance of TemplateEngine
         */
-       private function setSelectorTemplateEngine ($tplEngine) {
+       private function setSelectorTemplateEngine (CompileableTemplate $tplEngine) {
                $this->selectorTplEngine = $tplEngine;
        }
 
@@ -275,7 +275,7 @@ class ApplicationSelector extends BaseFrameworkSystem {
                $ignoreItem = (string) $ignoreItem;
                $this->dirIgnoreList[] = $ignoreItem;
        }
-       
+
        /**
         * Setter for language instance
         *