]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/structures/extended/cabines/ship/class_EconomyCabin.php
Several fixes for older tests
[shipsimu.git] / application / ship-simu / main / structures / extended / cabines / ship / class_EconomyCabin.php
index 47616dfc68be8b9c123bdca0abeb826974bc0e98..d95cc979cdaa43716ceed87f557281d57188570a 100644 (file)
@@ -1,6 +1,27 @@
 <?php
-// Economy-Class-Kabinen
-class EconomyCabin extends BaseCabin implements ItemIsTradeable, ConstructableShipPart {
+/**
+ * Cabins in the economy class may use this class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @version            0.0.0
+ * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @license            GNU GPL 3.0 or any newer version
+ * @link               http://www.ship-simu.org
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+class EconomyCabin extends BaseCabin implements TradeableItem, ConstructableShipPart {
        // Konstruktor
        private function __construct () {
                // Call parent constructor
@@ -25,8 +46,8 @@ class EconomyCabin extends BaseCabin implements ItemIsTradeable, ConstructableSh
        }
 
        // Economy-Kabine erstellen
-       public static function createEconomyCabin ($numLuxury, $numRooms, $numBeds, $dim) {
-               // Instanz holen
+       public final static function createEconomyCabin ($numLuxury, $numRooms, $numBeds, $dim) {
+               // Get new instance
                $ecoInstance = new EconomyCabin();
 
                // Debug message