]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/structures/class_BaseStructure.php
getter, setter are all final; several code clean-ups
[shipsimu.git] / application / ship-simu / main / structures / class_BaseStructure.php
index 83c1d63ba916037074d4e36b5c7cc3095d10d0af..007f9bfffd8ff48259b651fb73f2a20d644bc833 100644 (file)
@@ -20,27 +20,32 @@ class BaseStructure extends BaseSimulator {
                // Set description
                $this->setPartDescr("Schiffsstrukturen");
 
                // Set description
                $this->setPartDescr("Schiffsstrukturen");
 
-               // Etwas aufraeumen
+               // Clean up a little
                $this->removeNumberFormaters();
        }
 
                $this->removeNumberFormaters();
        }
 
-       // Konstruktor aufrufen
+       /**
+        * Calls the private constructor
+        *
+        * @param       $class  The class' name
+        * @return      void
+        */
        public function constructor ($class) {
                $this->__construct($class);
        }
 
        // Setter for price
        public function constructor ($class) {
                $this->__construct($class);
        }
 
        // Setter for price
-       public function setPrice ($price) {
+       public final function setPrice ($price) {
                $this->price = (float) $price;
        }
 
        // Getter for price
                $this->price = (float) $price;
        }
 
        // Getter for price
-       public function getPrice () {
+       public final function getPrice () {
                return $this->price;
        }
 
        // Remove price
                return $this->price;
        }
 
        // Remove price
-       public function removePrice () { 
+       public function removePrice () {
                unset($this->price);
        }
 }
                unset($this->price);
        }
 }