$this->setPartDescr("Kabinenstruktur");
}
- // Konstruktor aufrufen
+ /**
+ * Calls the private constructor
+ *
+ * @param $class The class' name
+ * @return void
+ */
public function constructor ($class) {
$this->__construct($class);
}
}
// Wrapper fuer setDeckInstance->setPartInstance
- public function setDeckInstance ($deck) {
+ public final function setDeckInstance ($deck) {
if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Wrapper setDeckInstance->setPartInstance erreicht.<br />\n",
__CLASS__,
__LINE__
}
// Getter-Methode fuer Anzahl Betten
- public function getNumBeds () {
+ public final function getNumBeds () {
if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] <strong>%d</strong> Betten angefordert.<br />\n",
__CLASS__,
__LINE__,
}
// Getter-Methode fuer Anzahl Kabinen
- public function getNumCabin () {
+ public final function getNumCabin () {
if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] <strong>%d</strong> Kabine(n) angefordert.<br />\n",
__CLASS__,
__LINE__,
}
// Setter-Methode fuer Anzahl Betten
- public function setNumBeds ($numBeds) {
+ public final function setNumBeds ($numBeds) {
if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] <strong>%d</strong> Betten gesetzt.<br />\n",
__CLASS__,
__LINE__,
}
// Setter-Methode fuer Anzahl Raeume
- public function setNumRooms ($numRooms) {
+ public final function setNumRooms ($numRooms) {
if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] <strong>%d</strong> Raum/Räume gesetzt.<br />\n",
__CLASS__,
__LINE__,
}
// Setter-Methode fuer Anzahl Kabinen
- public function setNumCabin ($numCabin) {
+ public final function setNumCabin ($numCabin) {
if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] <strong>%d</strong> Kabine(n) gesetzt.<br />\n",
__CLASS__,
__LINE__,
$num = $this->getNumCabin();
$cabinBeds = $beds * $num;
if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) {
- // Instanz holen
+ // Get new instance
$cabType = "Kabine ohne Namen";
$cab = $this->getPartInstance();
if (!is_null($cab)) {