<?php
-
-// Die Werft-Klasse
+/**
+ * A shipyard construction class which can be used for constructing all kinds of
+ * ships.
+ *
+ * @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 Shipyard extends BaseConstruction {
// Werft-Name
private $shipyardName = "Namenlose Werft";
$shipyardInstance->setHeight(30);
$shipyardInstance->setLength(100);
- // Etwas aufraeumen
+ // Clean up a little
$shipyardInstance->removeDraught();
$shipyardInstance->removeSystemArray();
}
// Setter-Methode fuer Werft-Name
- public function setShipyardName ($shipyardName) {
+ public final function setShipyardName ($shipyardName) {
$this->shipyardName = (string) $shipyardName;
}
// Getter-Methode fuer Werft-Name
- public function getShipyardName () {
+ public final function getShipyardName () {
return $this->shipyardName;
}
// Setter-Methode fuer Hafen-Instanz
- public function setHarborInstance (Harbor $harborInstance) {
+ public final function setHarborInstance (Harbor $harborInstance) {
$this->harborInstance = $harborInstance;
}
// Getter-Methode fuer Hafen-Instanz
- public function getHarborInstance () {
+ public final function getHarborInstance () {
return $this->harborInstance;
}
// Setter fuer Reederei-Instanz
- public function setCompanyInstance (ShippingCompany $companyInstance) {
+ public final function setCompanyInstance (ShippingCompany $companyInstance) {
$this->shippingCompany = $companyInstance;
}
// Getter fuer Reederei-Instanz
- public function getCompanyInstance () {
+ public final function getCompanyInstance () {
return $this->shippingCompany;
}