]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/constructions/harbors/class_Harbor.php
getter, setter are all final; several code clean-ups
[shipsimu.git] / application / ship-simu / main / constructions / harbors / class_Harbor.php
index 2dd43ea568e817e1fa5c65f019775de5f7bfdf5e..2a687b0245eb2aeee06a9b4554609d5c13f66fd0 100644 (file)
@@ -63,13 +63,13 @@ class Harbor extends BaseConstruction {
        }
 
        // Setter fuer Hafennamen
-       public function setHarborName ($harborName) {
+       public final function setHarborName ($harborName) {
                if ((defined('DEBUG_HARBOR')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[Harbor:] Der Hafen heisst jetzt <strong>%s</strong>.<br />\n", $harborName));
                $this->harborName = (string) $harborName;
        }
 
        // Getter fuer Hafennamen
-       public function getHarborName () {
+       public final function getHarborName () {
                if ((defined('DEBUG_HARBOR')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[Harbor:] Hafenname <strong>%s</strong> wurde angefordert.<br />\n", $this->harborName));
                return $this->harborName;
        }