]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/class_WorksContract.php
more 'final' statements added
[shipsimu.git] / application / ship-simu / main / class_WorksContract.php
index 0504fa59a5d470c94f3e63cef8adbc742ca63c5b..aaa597fdb1ee6ac3cc67a4fa18cd0f0fa192b782 100644 (file)
@@ -64,7 +64,7 @@ class WorksContract extends BaseFrameworkSystem implements SignableContract {
        }
 
        // Neuen Bauvertrag generieren
-       public static function createWorksContract ($shipType, $shipName, ContractPartner $partnerInstance) {
+       public final static function createWorksContract ($shipType, $shipName, ContractPartner $partnerInstance) {
                // Strings absichern
                $shipType = (string) $shipType;
                $shipName = (string) $shipName;
@@ -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 <strong>%s</strong> wird in den Bauvertrag aufgenommen.<br />\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 <strong>%s</strong> heissen.<br />\n",
                        __CLASS__,
                        __LINE__,