From 87c949b6948ffa6fa7aa3c1701888b20f86de6ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 13 Mar 2008 20:58:45 +0000 Subject: [PATCH] more 'final' statements added --- application/selector/class_ApplicationSelector.php | 6 +++--- application/ship-simu/main/class_WorksContract.php | 4 ++-- .../ship-simu/main/personell/class_SimulatorPersonell.php | 4 ++-- .../main/database/classes/class_LocalFileDatabase.php | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/application/selector/class_ApplicationSelector.php b/application/selector/class_ApplicationSelector.php index b0866dc..eb863ba 100644 --- a/application/selector/class_ApplicationSelector.php +++ b/application/selector/class_ApplicationSelector.php @@ -157,7 +157,7 @@ class ApplicationSelector extends BaseFrameworkSystem { * * @param $tplEngine An instance of TemplateEngine */ - private function setSelectorTemplateEngine (CompileableTemplate $tplEngine) { + private final function setSelectorTemplateEngine (CompileableTemplate $tplEngine) { $this->selectorTplEngine = $tplEngine; } @@ -166,7 +166,7 @@ class ApplicationSelector extends BaseFrameworkSystem { * * @return $selectTplEngine The selector's template engine */ - private function getSelectorTemplateEngine () { + private final function getSelectorTemplateEngine () { return $this->selectorTplEngine; } @@ -176,7 +176,7 @@ class ApplicationSelector extends BaseFrameworkSystem { * @return $loadedTemplates An array object holding all loaded * application templates */ - private function getLoadedTemplates () { + private final function getLoadedTemplates () { return $this->loadedTemplates; } diff --git a/application/ship-simu/main/class_WorksContract.php b/application/ship-simu/main/class_WorksContract.php index 1613d74..aaa597f 100644 --- a/application/ship-simu/main/class_WorksContract.php +++ b/application/ship-simu/main/class_WorksContract.php @@ -127,7 +127,7 @@ class WorksContract extends BaseFrameworkSystem implements SignableContract { } // Setter for ship instance - private function setShipInstance (ConstructableShip $shipInstance) { + private final function setShipInstance (ConstructableShip $shipInstance) { if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Das Schiff %s wird in den Bauvertrag aufgenommen.
\n", __CLASS__, __LINE__, @@ -137,7 +137,7 @@ class WorksContract extends BaseFrameworkSystem implements SignableContract { } // Setter for ship name - private function setShipName ($shipName) { + private final function setShipName ($shipName) { if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Das neue Schiff wird %s heissen.
\n", __CLASS__, __LINE__, diff --git a/application/ship-simu/main/personell/class_SimulatorPersonell.php b/application/ship-simu/main/personell/class_SimulatorPersonell.php index 1130bdb..1d148dd 100644 --- a/application/ship-simu/main/personell/class_SimulatorPersonell.php +++ b/application/ship-simu/main/personell/class_SimulatorPersonell.php @@ -338,7 +338,7 @@ class SimulatorPersonell extends BasePersonell { * @param $cacheList The new cache list to set or null for initialization/reset * @return void */ - private function setAllCacheList (FrameworkArrayObject $cacheList = null) { + private final function setAllCacheList (FrameworkArrayObject $cacheList = null) { $this->cacheList = $cacheList; } @@ -348,7 +348,7 @@ class SimulatorPersonell extends BasePersonell { * @param $cacheCond The new cache conditions to set * @return void */ - private function setCacheCond ($cacheCond) { + private final function setCacheCond ($cacheCond) { $this->cacheCond = (string) $cacheCond; } diff --git a/inc/classes/main/database/classes/class_LocalFileDatabase.php b/inc/classes/main/database/classes/class_LocalFileDatabase.php index 0dc66c6..ea4a8e1 100644 --- a/inc/classes/main/database/classes/class_LocalFileDatabase.php +++ b/inc/classes/main/database/classes/class_LocalFileDatabase.php @@ -316,7 +316,7 @@ class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend * @param $fqfn The FQFN of the last read file * @return void */ - private function setLastFile ($fqfn) { + private final function setLastFile ($fqfn) { // Cast string $fqfn = (string) $fqfn; $this->lastFile = $fqfn; @@ -337,7 +337,7 @@ class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend * @param $contents An array with header and data elements * @return void */ - private function setLastFileContents ($contents) { + private final function setLastFileContents ($contents) { // Cast array $contents = (array) $contents; $this->lastContents = $contents; -- 2.30.2