From: Roland Häder Date: Sat, 8 Mar 2008 14:52:41 +0000 (+0000) Subject: 'final' operator fixed, uncessary methods removed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f543a8caef0362c7da6890c2f02e901f4cb63888;p=shipsimu.git 'final' operator fixed, uncessary methods removed --- diff --git a/application/ship-simu/main/class_BasePersonell.php b/application/ship-simu/main/class_BasePersonell.php index 848989c..d77fbaa 100644 --- a/application/ship-simu/main/class_BasePersonell.php +++ b/application/ship-simu/main/class_BasePersonell.php @@ -162,7 +162,7 @@ class BasePersonell extends BaseFrameworkSystem implements Personellizer { } // Getter for surname - public final function getSurname () { + public function getSurname () { return $this->surname; } diff --git a/application/ship-simu/main/structures/extended/decks/cargo/class_CarDeck.php b/application/ship-simu/main/structures/extended/decks/cargo/class_CarDeck.php index 397b348..7369fd2 100644 --- a/application/ship-simu/main/structures/extended/decks/cargo/class_CarDeck.php +++ b/application/ship-simu/main/structures/extended/decks/cargo/class_CarDeck.php @@ -76,16 +76,6 @@ class CarDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPart parent::removeNumDecks(); } - // Setter-Methode fuer Anzahl Decks - public final function setNumDecks($numDecks) { - parent::setNumDecks($numDecks); - } - - // Getter-Methode fuer Anzahl Decks - public final function getNumDecks() { - return parent::getNumDecks(); - } - // Overwritten method for tradeable items public function isTradeable () { return true; diff --git a/application/ship-simu/main/structures/extended/decks/cargo/class_TrainDeck.php b/application/ship-simu/main/structures/extended/decks/cargo/class_TrainDeck.php index 4c26c39..d9c7990 100644 --- a/application/ship-simu/main/structures/extended/decks/cargo/class_TrainDeck.php +++ b/application/ship-simu/main/structures/extended/decks/cargo/class_TrainDeck.php @@ -76,16 +76,6 @@ class TrainDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPa parent::removeNumDecks(); } - // Setter-Methode fuer Anzahl Decks - public final function setNumDecks ($numDecks) { - parent::setNumDecks($numDecks); - } - - // Getter-Methode fuer Anzahl Decks - public final function getNumDecks() { - return parent::getNumDecks(); - } - // Overwritten method for tradeable items public function isTradeable () { return true; diff --git a/application/ship-simu/main/structures/extended/decks/cargo/class_TruckDeck.php b/application/ship-simu/main/structures/extended/decks/cargo/class_TruckDeck.php index 99c901a..04823a2 100644 --- a/application/ship-simu/main/structures/extended/decks/cargo/class_TruckDeck.php +++ b/application/ship-simu/main/structures/extended/decks/cargo/class_TruckDeck.php @@ -77,16 +77,6 @@ class TruckDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPa parent::removeNumDecks(); } - // Setter-Methode fuer Anzahl Decks - public final function setNumDecks ($numDecks) { - parent::setNumDecks($numDecks); - } - - // Getter-Methode fuer Anzahl Decks - public final function getNumDecks() { - return parent::getNumDecks(); - } - // Overwritten method for tradeable items public function isTradeable () { return true;