'final' added to factory methods
[shipsimu.git] / application / ship-simu / main / drives / motor / class_Motor.php
index 1e1bb2a69ea18ae5659c4d8969876a5301bc0306..eb3ac291f22e87a921760801c4717487b2810a52 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();