'final' added to factory methods
authorRoland Häder <roland@mxchange.org>
Thu, 13 Mar 2008 20:55:28 +0000 (20:55 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 13 Mar 2008 20:55:28 +0000 (20:55 +0000)
19 files changed:
application/selector/class_ApplicationSelector.php
application/ship-simu/main/class_Merchant.php
application/ship-simu/main/class_WorksContract.php
application/ship-simu/main/companies/class_ShippingCompany.php
application/ship-simu/main/constructions/harbors/class_Harbor.php
application/ship-simu/main/constructions/yards/class_Shipyard.php
application/ship-simu/main/drives/motor/class_Motor.php
application/ship-simu/main/parts/maschineroom/class_MaschineRoom.php
application/ship-simu/main/personell/class_SimulatorPersonell.php
application/ship-simu/main/personell/company/class_CompanyEmployee.php
application/ship-simu/main/ships/passenger/class_PassengerShip.php
application/ship-simu/main/structures/extended/cabines/ship/class_EconomyCabin.php
application/ship-simu/main/structures/extended/cabines/ship/class_LowCabin.php
application/ship-simu/main/structures/extended/cabines/ship/class_LuxuryCabin.php
application/ship-simu/main/structures/extended/cabines/ship/class_PremierCabin.php
application/ship-simu/main/structures/extended/decks/cargo/class_CarDeck.php
application/ship-simu/main/structures/extended/decks/cargo/class_TrainDeck.php
application/ship-simu/main/structures/extended/decks/cargo/class_TruckDeck.php
application/ship-simu/main/structures/extended/upper/class_Bridge.php

index c47ef87..b0866dc 100644 (file)
@@ -80,7 +80,7 @@ class ApplicationSelector extends BaseFrameworkSystem {
         * @param               $fileIOInstance The file I/O instance
         * @return              $selInstance            An instance of ApplicationSelector
         */
-       public static function createApplicationSelector (ManageableLanguage $langInstance, FileIOHandler $fileIOInstance) {
+       public final static function createApplicationSelector (ManageableLanguage $langInstance, FileIOHandler $fileIOInstance) {
                // Get a new instance
                $selInstance = new ApplicationSelector();
 
index 40d2207..3a2b892 100644 (file)
@@ -55,7 +55,7 @@ class Merchant extends BaseFrameworkSystem {
        }
 
        // Haendler mit Namen erzeugen
-       public static function createMerchant ($merchantName, Harbor $harborInstance) {
+       public final static function createMerchant ($merchantName, Harbor $harborInstance) {
                // String absichern
                $merchantName = (string) $merchantName;
 
index 0504fa5..1613d74 100644 (file)
@@ -64,7 +64,7 @@ class WorksContract extends BaseFrameworkSystem implements SignableContract {
        }
 
        // Neuen Bauvertrag generieren
-       public static function createWorksContract ($shipType, $shipName, ContractPartner $partnerInstance) {
+       public final static function createWorksContract ($shipType, $shipName, ContractPartner $partnerInstance) {
                // Strings absichern
                $shipType = (string) $shipType;
                $shipName = (string) $shipName;
index 8bb077c..18c0e74 100644 (file)
@@ -90,7 +90,7 @@ class ShippingCompany extends BaseSimulator implements Customer, ContractPartner
        }
 
        // Reederei gruenden (create wegen Namenskonvention)
-       public static function createShippingCompany ($companyName, Harbor $hqInstance) {
+       public final static function createShippingCompany ($companyName, Harbor $hqInstance) {
                // Get new instance
                $companyInstance = new ShippingCompany();
 
index ce273ad..7c1ce55 100644 (file)
@@ -54,7 +54,7 @@ class Harbor extends BaseConstruction {
        }
 
        // Creates a harbor
-       public static function createHarbor ($harborName) {
+       public final static function createHarbor ($harborName) {
                // Hafen-Instanz holen
                $harborInstance = new Harbor();
 
index 050f0d7..18a018e 100644 (file)
@@ -69,7 +69,7 @@ class Shipyard extends BaseConstruction {
        }
 
        // Create a shipyard and notify it about it's owner
-       public static function createShipyardNotify (Harbor $harborInstance, $shipyardName, ShippingCompany $companyInstance) {
+       public final static function createShipyardNotify (Harbor $harborInstance, $shipyardName, ShippingCompany $companyInstance) {
                // Werft-Instanz holen
                $shipyardInstance = self::createShipyard($harborInstance, $shipyardName);
 
index 1e1bb2a..eb3ac29 100644 (file)
@@ -46,7 +46,7 @@ class Motor extends BaseDrive implements ItemIsTradeable, ConstructableShipPart
        }
 
        // Einen Motor erstellen
-       public static function createMotor ($descr, $hp, $cams, $w, $h, $l) {
+       public final static function createMotor ($descr, $hp, $cams, $w, $h, $l) {
                // Get new instance
                $motorInstance = new Motor();
 
index 2367ab7..c89a0a0 100644 (file)
@@ -46,7 +46,7 @@ class MaschineRoom extends BaseShipPart {
        }
 
        // Maschinenraum erstellen
-       public static function createMaschineRoom () {
+       public final static function createMaschineRoom () {
                // Get new instance
                $roomInstance = new MaschineRoom();
 
index f04a029..1130bdb 100644 (file)
@@ -78,7 +78,7 @@ class SimulatorPersonell extends BasePersonell {
         * @return      $personellInstance              An instance of this object with a
         *                                                              list of personells
         */
-       public static function createSimulatorPersonell ($amountPersonell) {
+       public final static function createSimulatorPersonell ($amountPersonell) {
                // Make sure only integer can pass
                $amountPersonell = (int) $amountPersonell;
 
index 970017b..ae73132 100644 (file)
@@ -49,7 +49,7 @@ class CompanyEmployee extends SimulatorPersonell {
        }
 
        // Generate a specified amount of personell
-       public static function createCompanyEmployee ($surname, $family, $gender, $year, $month, $day, $married, $salary) {
+       public final static function createCompanyEmployee ($surname, $family, $gender, $year, $month, $day, $married, $salary) {
                // Get instance
                $personellInstance = new CompanyEmployee();
 
index 23a6c3e..947bba2 100644 (file)
@@ -47,7 +47,7 @@ class PassengerShip extends BaseShip implements ConstructableShip, LimitableObje
        }
 
        // Passagier-Schiff erstellen
-       public static function createPassengerShip ($shipName) {
+       public final static function createPassengerShip ($shipName) {
                // Get new instance
                $passInstance = new PassengerShip();
 
index 52cf199..851c69e 100644 (file)
@@ -46,7 +46,7 @@ class EconomyCabin extends BaseCabin implements ItemIsTradeable, ConstructableSh
        }
 
        // Economy-Kabine erstellen
-       public static function createEconomyCabin ($numLuxury, $numRooms, $numBeds, $dim) {
+       public final static function createEconomyCabin ($numLuxury, $numRooms, $numBeds, $dim) {
                // Get new instance
                $ecoInstance = new EconomyCabin();
 
index bdb6796..bef1817 100644 (file)
@@ -44,7 +44,7 @@ class LowCabin extends BaseCabin implements ItemIsTradeable, ConstructableShipPa
        }
 
        // 2-Sterne-Klasse erstellen
-       public static function createLowCabin ($numLuxury, $numRooms, $numBeds, $dim) {
+       public final static function createLowCabin ($numLuxury, $numRooms, $numBeds, $dim) {
                // Get new instance
                $lowInstance = new LowCabin();
 
index 25c0dd4..4b330ff 100644 (file)
@@ -44,7 +44,7 @@ class LuxuryCabin extends BaseCabin implements ItemIsTradeable, ConstructableShi
        }
 
        // Eine Luxuskabine erstellen
-       public static function createLuxuryCabin ($numLuxury, $numRooms, $numBeds, $dim) {
+       public final static function createLuxuryCabin ($numLuxury, $numRooms, $numBeds, $dim) {
                // Get new instance
                $luxuryInstance = new LuxuryCabin();
 
index 3be9a95..92ca60b 100644 (file)
@@ -44,7 +44,7 @@ class PremierCabin extends BaseCabin implements ItemIsTradeable, ConstructableSh
        }
 
        // Premier-Kabine erstellen
-       public static function createPremierCabin ($numLuxury, $numRooms, $numBeds, $dim) {
+       public final static function createPremierCabin ($numLuxury, $numRooms, $numBeds, $dim) {
                // Get new instance
                $premierInstance = new PremierCabin();
 
index 7369fd2..1dcc457 100644 (file)
@@ -44,7 +44,7 @@ class CarDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPart
        }
 
        // Autodeck erstellen
-       public static function createCarDeck ($numDecks, $dim) {
+       public final static function createCarDeck ($numDecks, $dim) {
                // Get new instance
                $carInstance = new CarDeck();
 
index d9c7990..d63d173 100644 (file)
@@ -44,7 +44,7 @@ class TrainDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPa
        }
 
        // LKW-Deck erstellen
-       public static function createTrainDeck ($numDecks, $dim) {
+       public final static function createTrainDeck ($numDecks, $dim) {
                // Get new instance
                $trainInstance = new TrainDeck();
 
index 04823a2..112c282 100644 (file)
@@ -45,7 +45,7 @@ class TruckDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPa
        }
 
        // LKW-Deck erstellen
-       public static function createTruckDeck ($numDecks, $dim) {
+       public final static function createTruckDeck ($numDecks, $dim) {
                // Get new instance
                $truckInstance = new TruckDeck();
 
index 7f0fce4..995b7a2 100644 (file)
@@ -45,7 +45,7 @@ class Bridge extends BaseUpperStructure implements ItemIsTradeable, Constructabl
        }
 
        // Eine Kommandobruecke erstellen
-       public static function createBridge ($width, $height, $length) {
+       public final static function createBridge ($width, $height, $length) {
                // Get new instance
                $bridgeInstance = new Bridge();