*
* @return $thisInstance An instance of this class
*/
- public final static function getInstance () {
+ public static final function getInstance () {
// Is the instance there?
if (is_null(self::$thisInstance)) {
self::$thisInstance = new ApplicationHelper();
*
* @return $actionInstance An instance of this action class
*/
- public final static function createShipSimuLoginAction () {
+ public static final function createShipSimuLoginAction () {
// Get a new instance
$actionInstance = new ShipSimuLoginAction();
*
* @return $actionInstance An instance of this action class
*/
- public final static function createShipSimuProfileAction () {
+ public static final function createShipSimuProfileAction () {
// Get a new instance
$actionInstance = new ShipSimuProfileAction();
* @param $resolverInstance An instance of an action resolver
* @return $actionInstance An instance of this action class
*/
- public final static function createWebShipSimuLoginCompanyAction (ActionResolver $resolverInstance) {
+ public static final function createWebShipSimuLoginCompanyAction (ActionResolver $resolverInstance) {
// Get a new instance
$actionInstance = new WebShipSimuLoginCompanyAction();
* @param $resolverInstance An instance of an action resolver
* @return $actionInstance An instance of this action class
*/
- public final static function createWebShipSimuLoginGovernmentStartupHelpAction (ActionResolver $resolverInstance) {
+ public static final function createWebShipSimuLoginGovernmentStartupHelpAction (ActionResolver $resolverInstance) {
// Get a new instance
$actionInstance = new WebShipSimuLoginGovernmentStartupHelpAction();
* @param $resolverInstance An instance of an action resolver
* @return $actionInstance An instance of this action class
*/
- public final static function createWebShipSimuLoginGovernmentTrainingAction (ActionResolver $resolverInstance) {
+ public static final function createWebShipSimuLoginGovernmentTrainingAction (ActionResolver $resolverInstance) {
// Get a new instance
$actionInstance = new WebShipSimuLoginGovernmentTrainingAction();
* @param $resolverInstance An instance of an action resolver
* @return $actionInstance An instance of this action class
*/
- public final static function createWebShipSimuLoginLogoutAction (ActionResolver $resolverInstance) {
+ public static final function createWebShipSimuLoginLogoutAction (ActionResolver $resolverInstance) {
// Get a new instance
$actionInstance = new WebShipSimuLoginLogoutAction();
* @param $resolverInstance An instance of an action resolver
* @return $actionInstance An instance of this action class
*/
- public final static function createWebShipSimuLoginProfileAction (ActionResolver $resolverInstance) {
+ public static final function createWebShipSimuLoginProfileAction (ActionResolver $resolverInstance) {
// Get a new instance
$actionInstance = new WebShipSimuLoginProfileAction();
* @param $resolverInstance An instance of an action resolver
* @return $actionInstance An instance of this action class
*/
- public final static function createWebShipSimuLoginRefillAction (ActionResolver $resolverInstance) {
+ public static final function createWebShipSimuLoginRefillAction (ActionResolver $resolverInstance) {
// Get a new instance
$actionInstance = new WebShipSimuLoginRefillAction();
* @param $resolverInstance An instance of an action resolver
* @return $actionInstance An instance of this action class
*/
- public final static function createWebShipSimuLoginStatusProblemAction (ActionResolver $resolverInstance) {
+ public static final function createWebShipSimuLoginStatusProblemAction (ActionResolver $resolverInstance) {
// Get a new instance
$actionInstance = new WebShipSimuLoginStatusProblemAction();
* @param $resolverInstance An instance of an action resolver
* @return $actionInstance An instance of this action class
*/
- public final static function createWebShipSimuLoginWelcomeAction (ActionResolver $resolverInstance) {
+ public static final function createWebShipSimuLoginWelcomeAction (ActionResolver $resolverInstance) {
// Get a new instance
$actionInstance = new WebShipSimuLoginWelcomeAction();
* @param $userInstance A class instance of a user object
* @return $bankInstance An instance of this class
*/
- public final static function createMoneyBank (ManageableAccount $userInstance) {
+ public static final function createMoneyBank (ManageableAccount $userInstance) {
// Get a new instance
$moneyInstance = new MoneyBank();
}
// Haendler mit Namen erzeugen
- public final static function createMerchant ($merchantName, Harbor $harborInstance) {
+ public static final function createMerchant ($merchantName, Harbor $harborInstance) {
// String absichern
$merchantName = (string) $merchantName;
}
// Neuen Bauvertrag generieren
- public final static function createWorksContract ($shipType, $shipName, ContractPartner $partnerInstance) {
+ public static final function createWorksContract ($shipType, $shipName, ContractPartner $partnerInstance) {
// Strings absichern
$shipType = (string) $shipType;
$shipName = (string) $shipName;
* @param $resolverInstance An instance of a command resolver
* @return $commandInstance The created command instance
*/
- public final static function createWebShipsimuGuestLoginCommand (CommandResolver $resolverInstance) {
+ public static final function createWebShipsimuGuestLoginCommand (CommandResolver $resolverInstance) {
// Get a new instance
$commandInstance = new WebShipsimuGuestLoginCommand();
* @param $resolverInstance An instance of a command resolver
* @return $commandInstance The created command instance
*/
- public final static function createWebShipsimuProfileCommand (CommandResolver $resolverInstance) {
+ public static final function createWebShipsimuProfileCommand (CommandResolver $resolverInstance) {
// Get a new instance
$commandInstance = new WebShipsimuProfileCommand();
* @param $resolverInstance An instance of a command resolver
* @return $commandInstance The created command instance
*/
- public final static function createWebShipsimuRefillCommand (CommandResolver $resolverInstance) {
+ public static final function createWebShipsimuRefillCommand (CommandResolver $resolverInstance) {
// Get a new instance
$commandInstance = new WebShipsimuRefillCommand();
* @param $resolverInstance An instance of a command resolver
* @return $commandInstance The created command instance
*/
- public final static function createWebShipsimuRegisterCommand (CommandResolver $resolverInstance) {
+ public static final function createWebShipsimuRegisterCommand (CommandResolver $resolverInstance) {
// Get a new instance
$commandInstance = new WebShipsimuRegisterCommand();
* @param $resolverInstance An instance of a command resolver
* @return $commandInstance The created command instance
*/
- public final static function createWebShipsimuUserLoginCommand (CommandResolver $resolverInstance) {
+ public static final function createWebShipsimuUserLoginCommand (CommandResolver $resolverInstance) {
// Get a new instance
$commandInstance = new WebShipsimuUserLoginCommand();
* @param $resolverInstance An instance of a command resolver
* @return $commandInstance The created command instance
*/
- public final static function createWebShipSimuCompanyCommand (CommandResolver $resolverInstance) {
+ public static final function createWebShipSimuCompanyCommand (CommandResolver $resolverInstance) {
// Get a new instance
$commandInstance = new WebShipSimuCompanyCommand();
* @param $resolverInstance An instance of a command resolver class
* @return $commandInstance An instance a prepared command class
*/
- public final static function createWebGovernmentFailedStartupCommand (CommandResolver $resolverInstance) {
+ public static final function createWebGovernmentFailedStartupCommand (CommandResolver $resolverInstance) {
// Get new instance
$commandInstance = new WebGovernmentFailedStartupCommand();
* @param $resolverInstance An instance of a command resolver class
* @return $commandInstance An instance a prepared command class
*/
- public final static function createWebGovernmentFailedTrainingCommand (CommandResolver $resolverInstance) {
+ public static final function createWebGovernmentFailedTrainingCommand (CommandResolver $resolverInstance) {
// Get new instance
$commandInstance = new WebGovernmentFailedTrainingCommand();
* @param $resolverInstance An instance of a command resolver class
* @return $commandInstance An instance a prepared command class
*/
- public final static function createWebShipsimuGovernmentStartupCommand (CommandResolver $resolverInstance) {
+ public static final function createWebShipsimuGovernmentStartupCommand (CommandResolver $resolverInstance) {
// Get new instance
$commandInstance = new WebShipsimuGovernmentStartupCommand();
* @param $resolverInstance An instance of a command resolver class
* @return $commandInstance An instance a prepared command class
*/
- public final static function createWebShipsimuGovernmentTrainingCommand (CommandResolver $resolverInstance) {
+ public static final function createWebShipsimuGovernmentTrainingCommand (CommandResolver $resolverInstance) {
// Get new instance
$commandInstance = new WebShipsimuGovernmentTrainingCommand();
* @return $companyInstance Prepared company instance
* @todo Add functionality if user participates in a company
*/
- public final static function createShippingCompany (ManageableAccount $userInstance) {
+ public static final function createShippingCompany (ManageableAccount $userInstance) {
// Get new instance
$companyInstance = new ShippingCompany();
}
// Creates a harbor
- public final static function createHarbor ($harborName) {
+ public static final function createHarbor ($harborName) {
// Hafen-Instanz holen
$harborInstance = new Harbor();
}
// Create a shipyard and notify it about it's owner
- public final static function createShipyardNotify (Harbor $harborInstance, $shipyardName, ShippingCompany $companyInstance) {
+ public static final function createShipyardNotify (Harbor $harborInstance, $shipyardName, ShippingCompany $companyInstance) {
// Werft-Instanz holen
$shipyardInstance = self::createShipyard($harborInstance, $shipyardName);
}
// Create a shipyard, first we need to create a harbor
- public final static function createShipyard (Harbor $harborInstance, $shipyardName) {
+ public static final function createShipyard (Harbor $harborInstance, $shipyardName) {
// Instanz temporaer holen
$shipyardInstance = new Shipyard();
* @return $controllerInstance A prepared instance of this class
* @todo Add some filters to this controller
*/
- public final static function createWebCompanyController (CommandResolver $resolverInstance) {
+ public static final function createWebCompanyController (CommandResolver $resolverInstance) {
// Create the instance
$controllerInstance = new WebCompanyController();
* @return $controllerInstance A prepared instance of this class
* @todo Add some filters to this controller
*/
- public final static function createWebGovernmentFailedController (CommandResolver $resolverInstance) {
+ public static final function createWebGovernmentFailedController (CommandResolver $resolverInstance) {
// Create the instance
$controllerInstance = new WebGovernmentFailedController();
}
// Einen Motor erstellen
- public final static function createMotor ($descr, $hp, $cams, $w, $h, $l) {
+ public static final function createMotor ($descr, $hp, $cams, $w, $h, $l) {
// Get new instance
$motorInstance = new Motor();
*
* @return $factoryInstance An instance of this class
*/
- public final static function createShipSimuWebNewsFactory () {
+ public static final function createShipSimuWebNewsFactory () {
// Get a new instance
$factoryInstance = new ShipSimuWebNewsFactory();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createRefillRequestCurrencyTestBookFilter () {
+ public static final function createRefillRequestCurrencyTestBookFilter () {
// Get a new instance
$filterInstance = new RefillRequestCurrencyTestBookFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createShipSimuGovernmentPaysStartupHelpFilter () {
+ public static final function createShipSimuGovernmentPaysStartupHelpFilter () {
// Get a new instance
$filterInstance = new ShipSimuGovernmentPaysStartupHelpFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createShipSimuGovernmentPaysTrainingFilter () {
+ public static final function createShipSimuGovernmentPaysTrainingFilter () {
// Get a new instance
$filterInstance = new ShipSimuGovernmentPaysTrainingFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createRefillPageFilter () {
+ public static final function createRefillPageFilter () {
// Get a new instance
$filterInstance = new RefillPageFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createRefillRequestValidatorFilter () {
+ public static final function createRefillRequestValidatorFilter () {
// Get a new instance
$filterInstance = new RefillRequestValidatorFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createShipSimuUserStatusGuestFilter () {
+ public static final function createShipSimuUserStatusGuestFilter () {
// Get a new instance
$filterInstance = new ShipSimuUserStatusGuestFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createBirthdayVerifierFilter () {
+ public static final function createBirthdayVerifierFilter () {
// Get a new instance
$filterInstance = new BirthdayVerifierFilter();
* @param $userInstance The user instance
* @return $governmentInstance Instance of the prepared government instance
*/
- public final static function createSimplifiedGovernment (ManageableAccount $userInstance) {
+ public static final function createSimplifiedGovernment (ManageableAccount $userInstance) {
// Get a new instance
$governmentInstance = new SimplifiedGovernment();
*
* @return $loginInstance An instance of this login class
*/
- public final static function createShipSimuGuestLogin () {
+ public static final function createShipSimuGuestLogin () {
// Get a new instance
$loginInstance = new ShipSimuGuestLogin();
*
* @return $loginInstance An instance of this login class
*/
- public final static function createShipSimuUserLogin () {
+ public static final function createShipSimuUserLogin () {
// Get a new instance
$loginInstance = new ShipSimuUserLogin();
* @throws UserInstanceMissingException If the user instance in registry
* is missing or invalid
*/
- public final static function createShipSimuLoginHelper (Requestable $requestInstance) {
+ public static final function createShipSimuLoginHelper (Requestable $requestInstance) {
// Get a new instance first
$helperInstance = new ShipSimuLoginHelper();
*
* @return $menuInstance An instance of this class
*/
- public final static function createShipSimuConfirmMenu () {
+ public static final function createShipSimuConfirmMenu () {
// Get a new instance
$menuInstance = new ShipSimuConfirmMenu();
*
* @return $menuInstance An instance of this class
*/
- public final static function createShipSimuHomeMenu () {
+ public static final function createShipSimuHomeMenu () {
// Get a new instance
$menuInstance = new ShipSimuHomeMenu();
*
* @return $menuInstance An instance of this class
*/
- public final static function createShipSimuLoginAreaMenu () {
+ public static final function createShipSimuLoginAreaMenu () {
// Get a new instance
$menuInstance = new ShipSimuLoginAreaMenu();
*
* @return $menuInstance An instance of this class
*/
- public final static function createShipSimuLoginFailedMenu () {
+ public static final function createShipSimuLoginFailedMenu () {
// Get a new instance
$menuInstance = new ShipSimuLoginFailedMenu();
*
* @return $menuInstance An instance of this class
*/
- public final static function createShipSimuLoginMenu () {
+ public static final function createShipSimuLoginMenu () {
// Get a new instance
$menuInstance = new ShipSimuLoginMenu();
*
* @return $menuInstance An instance of this class
*/
- public final static function createShipSimuLogoutMenu () {
+ public static final function createShipSimuLogoutMenu () {
// Get a new instance
$menuInstance = new ShipSimuLogoutMenu();
*
* @return $menuInstance An instance of this class
*/
- public final static function createShipSimuRegisterMenu () {
+ public static final function createShipSimuRegisterMenu () {
// Get a new instance
$menuInstance = new ShipSimuRegisterMenu();
*
* @return $menuInstance An instance of this class
*/
- public final static function createShipSimuStatusMenu () {
+ public static final function createShipSimuStatusMenu () {
// Get a new instance
$menuInstance = new ShipSimuStatusMenu();
*
* @return $menuInstance An instance of this class
*/
- public final static function createShipSimuGovernmentFailedAreaMenu () {
+ public static final function createShipSimuGovernmentFailedAreaMenu () {
// Get a new instance
$menuInstance = new ShipSimuGovernmentFailedAreaMenu();
* @param $bankInstance An instance of a money bank
* @return $openeningInstance An instance of this class
*/
- public final static function createMoneyBankRealtimeOpening (BaseBank $bankInstance) {
+ public static final function createMoneyBankRealtimeOpening (BaseBank $bankInstance) {
// Get a new instance
$openingInstance = new MoneyBankRealtimeOpening();
}
// Maschinenraum erstellen
- public final static function createMaschineRoom () {
+ public static final function createMaschineRoom () {
// Get new instance
$roomInstance = new MaschineRoom();
* @return $personellInstance An instance of this object with a
* list of personells
*/
- public final static function createSimulatorPersonell ($amountPersonell) {
+ public static final function createSimulatorPersonell ($amountPersonell) {
// Make sure only integer can pass
$amountPersonell = (int) $amountPersonell;
* @throws MissingSimulatorIdException If an ID number was not found
* @deprecated
*/
- public final static function createSimulatorPersonellByID ($idNumber) {
+ public static final function createSimulatorPersonellByID ($idNumber) {
// Get instance
$personellInstance = new SimulatorPersonell(false);
$personellInstance->makeDeprecated();
}
// Generate a specified amount of personell
- public final static function createCompanyEmployee ($surname, $family, $gender, $year, $month, $day, $married, $salary) {
+ public static final function createCompanyEmployee ($surname, $family, $gender, $year, $month, $day, $married, $salary) {
// Get instance
$personellInstance = new CompanyEmployee();
*
* @return $registrationInstance An instance of this registration class
*/
- public final static function createShipSimuRegistration () {
+ public static final function createShipSimuRegistration () {
// Get a new instance
$registrationInstance = new ShipSimuRegistration();
* @throws EmptyVariableException Thrown if default command is not set
* @throws InvalidInterfaceException Thrown if command does not implement interface Commandable
*/
- public final static function createWebCompanyCommandResolver ($commandName, ManageableApplication $appInstance) {
+ public static final function createWebCompanyCommandResolver ($commandName, ManageableApplication $appInstance) {
// Create the new instance
$resolverInstance = new WebCompanyCommandResolver();
* @throws EmptyVariableException Thrown if default command is not set
* @throws InvalidInterfaceException Thrown if command does not implement interface Commandable
*/
- public final static function createWebGovernmentFailedCommandResolver ($commandName, ManageableApplication $appInstance) {
+ public static final function createWebGovernmentFailedCommandResolver ($commandName, ManageableApplication $appInstance) {
// Create the new instance
$resolverInstance = new WebGovernmentFailedCommandResolver();
}
// Passagier-Schiff erstellen
- public final static function createPassengerShip ($shipName) {
+ public static final function createPassengerShip ($shipName) {
// Get new instance
$passInstance = new PassengerShip();
}
// Economy-Kabine erstellen
- public final static function createEconomyCabin ($numLuxury, $numRooms, $numBeds, $dim) {
+ public static final function createEconomyCabin ($numLuxury, $numRooms, $numBeds, $dim) {
// Get new instance
$ecoInstance = new EconomyCabin();
}
// 2-Sterne-Klasse erstellen
- public final static function createLowCabin ($numLuxury, $numRooms, $numBeds, $dim) {
+ public static final function createLowCabin ($numLuxury, $numRooms, $numBeds, $dim) {
// Get new instance
$lowInstance = new LowCabin();
}
// Eine Luxuskabine erstellen
- public final static function createLuxuryCabin ($numLuxury, $numRooms, $numBeds, $dim) {
+ public static final function createLuxuryCabin ($numLuxury, $numRooms, $numBeds, $dim) {
// Get new instance
$luxuryInstance = new LuxuryCabin();
}
// Premier-Kabine erstellen
- public final static function createPremierCabin ($numLuxury, $numRooms, $numBeds, $dim) {
+ public static final function createPremierCabin ($numLuxury, $numRooms, $numBeds, $dim) {
// Get new instance
$premierInstance = new PremierCabin();
}
// Autodeck erstellen
- public final static function createCarDeck ($numDecks, $dim) {
+ public static final function createCarDeck ($numDecks, $dim) {
// Get new instance
$carInstance = new CarDeck();
}
// LKW-Deck erstellen
- public final static function createTrainDeck ($numDecks, $dim) {
+ public static final function createTrainDeck ($numDecks, $dim) {
// Get new instance
$trainInstance = new TrainDeck();
}
// LKW-Deck erstellen
- public final static function createTruckDeck ($numDecks, $dim) {
+ public static final function createTruckDeck ($numDecks, $dim) {
// Get new instance
$truckInstance = new TruckDeck();
}
// Eine Kommandobruecke erstellen
- public final static function createBridge ($width, $height, $length) {
+ public static final function createBridge ($width, $height, $length) {
// Get new instance
$bridgeInstance = new Bridge();
* @return $userInstance An instance of this user class
* @throws UsernameMissingException If the username does not exist
*/
- public final static function createGuestByUsername ($userName) {
+ public static final function createGuestByUsername ($userName) {
// Get a new instance
$userInstance = new ShipSimuGuest();
* @param $email Email address of the user
* @return $userInstance An instance of this user class
*/
- public final static function createGuestByEmail ($email) {
+ public static final function createGuestByEmail ($email) {
// Get a new instance
$userInstance = new ShipSimuGuest();
* @return $userInstance An instance of this user class
* @throws UsernameMissingException If the username does not exist
*/
- public final static function createMemberByUsername ($userName) {
+ public static final function createMemberByUsername ($userName) {
// Get a new instance
$userInstance = new ShipSimuMember();
* @param $email Email address of the user
* @return $userInstance An instance of this user class
*/
- public final static function createMemberByEmail ($email) {
+ public static final function createMemberByEmail ($email) {
// Get a new instance
$userInstance = new ShipSimuMember();
* @return $userInstance An instance of this user class
* @todo Add more ways of creating user instances
*/
- public final static function createMemberByRequest (Requestable $requestInstance) {
+ public static final function createMemberByRequest (Requestable $requestInstance) {
// Determine if by email or username
if (!is_null($requestInstance->getRequestElement('username'))) {
// Username supplied
* @return $wrapperInstance An instance of this wrapper class
* @todo Find an interface which is suitable for all companies
*/
- public final static function createCompanyDatabaseWrapper (ShippingCompany $companyInstance = null) {
+ public static final function createCompanyDatabaseWrapper (ShippingCompany $companyInstance = null) {
// Create a new instance
$wrapperInstance = new CompanyDatabaseWrapper();
*
* @return $wrapperInstance An instance of this wrapper class
*/
- public final static function createUserGovernmentDatabaseWrapper () {
+ public static final function createUserGovernmentDatabaseWrapper () {
// Create a new instance
$wrapperInstance = new UserGovernmentDatabaseWrapper();