]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/structures/extended/class_BaseCabinStructure.php
getter, setter are all final; several code clean-ups
[shipsimu.git] / application / ship-simu / main / structures / extended / class_BaseCabinStructure.php
index b26f692fd94ef233037558c083be42e6aa412842..9f80e43511b8a70bebadf3e7fef3c1d5832c04ad 100644 (file)
@@ -28,7 +28,12 @@ class BaseCabinStructure extends BaseStructure {
                $this->setPartDescr("Kabinenstruktur");
        }
 
-       // Konstruktor aufrufen
+       /**
+        * Calls the private constructor
+        *
+        * @param       $class  The class' name
+        * @return      void
+        */
        public function constructor ($class) {
                $this->__construct($class);
        }
@@ -68,7 +73,7 @@ class BaseCabinStructure extends BaseStructure {
        }
 
        // Wrapper fuer setDeckInstance->setPartInstance
-       public function setDeckInstance ($deck) {
+       public final function setDeckInstance ($deck) {
                if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Wrapper setDeckInstance->setPartInstance erreicht.<br />\n",
                        __CLASS__,
                        __LINE__
@@ -77,7 +82,7 @@ class BaseCabinStructure extends BaseStructure {
        }
 
        // Getter-Methode fuer Anzahl Betten
-       public function getNumBeds () {
+       public final function getNumBeds () {
                if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] <strong>%d</strong> Betten angefordert.<br />\n",
                        __CLASS__,
                        __LINE__,
@@ -87,7 +92,7 @@ class BaseCabinStructure extends BaseStructure {
        }
 
        // Getter-Methode fuer Anzahl Kabinen
-       public function getNumCabin () {
+       public final function getNumCabin () {
                if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] <strong>%d</strong> Kabine(n) angefordert.<br />\n",
                        __CLASS__,
                        __LINE__,
@@ -97,7 +102,7 @@ class BaseCabinStructure extends BaseStructure {
        }
 
        // Setter-Methode fuer Anzahl Betten
-       public function setNumBeds ($numBeds) {
+       public final function setNumBeds ($numBeds) {
                if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] <strong>%d</strong> Betten gesetzt.<br />\n",
                        __CLASS__,
                        __LINE__,
@@ -107,7 +112,7 @@ class BaseCabinStructure extends BaseStructure {
        }
 
        // Setter-Methode fuer Anzahl Raeume
-       public function setNumRooms ($numRooms) {
+       public final function setNumRooms ($numRooms) {
                if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] <strong>%d</strong> Raum/R&auml;ume gesetzt.<br />\n",
                        __CLASS__,
                        __LINE__,
@@ -117,7 +122,7 @@ class BaseCabinStructure extends BaseStructure {
        }
 
        // Setter-Methode fuer Anzahl Kabinen
-       public function setNumCabin ($numCabin) {
+       public final function setNumCabin ($numCabin) {
                if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] <strong>%d</strong> Kabine(n) gesetzt.<br />\n",
                        __CLASS__,
                        __LINE__,
@@ -160,7 +165,7 @@ class BaseCabinStructure extends BaseStructure {
                $num  = $this->getNumCabin();
                $cabinBeds = $beds * $num;
                if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) {
-                       // Instanz holen
+                       // Get new instance
                        $cabType = "Kabine ohne Namen";
                        $cab = $this->getPartInstance();
                        if (!is_null($cab)) {