* @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();
}
// Haendler mit Namen erzeugen
- public static function createMerchant ($merchantName, Harbor $harborInstance) {
+ public final static function createMerchant ($merchantName, Harbor $harborInstance) {
// String absichern
$merchantName = (string) $merchantName;
}
// 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;
}
// 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();
}
// Creates a harbor
- public static function createHarbor ($harborName) {
+ public final static function createHarbor ($harborName) {
// Hafen-Instanz holen
$harborInstance = new Harbor();
}
// 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);
}
// 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();
}
// Maschinenraum erstellen
- public static function createMaschineRoom () {
+ public final static function createMaschineRoom () {
// Get new instance
$roomInstance = new MaschineRoom();
* @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;
}
// 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();
}
// Passagier-Schiff erstellen
- public static function createPassengerShip ($shipName) {
+ public final static function createPassengerShip ($shipName) {
// Get new instance
$passInstance = new PassengerShip();
}
// 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();
}
// 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();
}
// 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();
}
// 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();
}
// Autodeck erstellen
- public static function createCarDeck ($numDecks, $dim) {
+ public final static function createCarDeck ($numDecks, $dim) {
// Get new instance
$carInstance = new CarDeck();
}
// LKW-Deck erstellen
- public static function createTrainDeck ($numDecks, $dim) {
+ public final static function createTrainDeck ($numDecks, $dim) {
// Get new instance
$trainInstance = new TrainDeck();
}
// LKW-Deck erstellen
- public static function createTruckDeck ($numDecks, $dim) {
+ public final static function createTruckDeck ($numDecks, $dim) {
// Get new instance
$truckInstance = new TruckDeck();
}
// Eine Kommandobruecke erstellen
- public static function createBridge ($width, $height, $length) {
+ public final static function createBridge ($width, $height, $length) {
// Get new instance
$bridgeInstance = new Bridge();