X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=application%2Fship-simu%2Fmain%2Fships%2Fclass_BaseShip.php;h=689374045f8117111e9f6ecffa494f00aee6ee45;hb=a76d51b4096b47436e269156547f02713d95af5b;hp=d7c394b1e7930bdc164dd551c3017f46ae199648;hpb=edc57038a9262e3a04572e0d9036a9f745b10fb7;p=shipsimu.git diff --git a/application/ship-simu/main/ships/class_BaseShip.php b/application/ship-simu/main/ships/class_BaseShip.php index d7c394b..6893740 100644 --- a/application/ship-simu/main/ships/class_BaseShip.php +++ b/application/ship-simu/main/ships/class_BaseShip.php @@ -32,13 +32,18 @@ class BaseShip extends BaseSimulator { // Array-Objekt generieren $this->createStructuresArray(); - + // Instanz entfernen $this->removePartInstance(); $this->removeNumberFormaters(); } - // Konstruktor aufrufen + /** + * Calls the private constructor + * + * @param $class The class' name + * @return void + */ public function constructor ($class) { $this->__construct($class); } @@ -156,7 +161,7 @@ class BaseShip extends BaseSimulator { } // Getter-Methode fuer Strukturen-Array - public function getStructuresArray () { + public final function getStructuresArray () { return $this->structures; } @@ -167,7 +172,7 @@ class BaseShip extends BaseSimulator { } // Setter-Methode fuer Schiffsnamen - public function setShipName ($shipName) { + public final function setShipName ($shipName) { // Cast the string $shipName = (string) $shipName; @@ -184,7 +189,7 @@ class BaseShip extends BaseSimulator { } // Getter-Methode fuer Schiffsnamen - public function getShipName () { + public final function getShipName () { if ((defined('DEBUG_SHIP')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Das %s ist auf den Namen %s getauft worden.
\n", __CLASS__, __LINE__, @@ -195,7 +200,7 @@ class BaseShip extends BaseSimulator { } // Setter-Methode fuer Tiefgang - public function setDraught ($draught) { + public final function setDraught ($draught) { if ((defined('DEBUG_SHIP')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Das %s mit dem Namen %s hat einen Tiefgang von %sm.
\n", __CLASS__, __LINE__, @@ -207,7 +212,7 @@ class BaseShip extends BaseSimulator { } // Getter-Methode fuer Tiefgang - public function getDraught() { + public final function getDraught() { if ((defined('DEBUG_SHIP')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Der Tiefgang des Schiffes %s wurde angefordert.
\n", __CLASS__, __LINE__, @@ -217,7 +222,7 @@ class BaseShip extends BaseSimulator { } // Setter-Methode fuer Anzahl Anker - public function setNumAnchor ($numAnchor) { + public final function setNumAnchor ($numAnchor) { if ((defined('DEBUG_SHIP')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Das %s mit dem Namen %s hat %s Anker.
\n", __CLASS__, __LINE__,