// Set description
$this->setPartDescr("Namenloser Antrieb");
- // Etwas aufraeumen
+ // Clean up a little
$this->removeNumberFormaters();
$this->removePartInstance();
}
- // Konstruktor aufrufen
+ /**
+ * Calls the private constructor
+ *
+ * @param $class The class' name
+ * @return void
+ */
public function constructor ($class) {
$this->__construct($class);
}
// Setter-Methode fuert PS-Zahl
- public function setHorsePower ($hp) {
+ public final function setHorsePower ($hp) {
if ((defined('DEBUG_DRIVE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Antriebsleistung wird auf <strong>%d</strong> PS gesetzt.<br />\n",
__CLASS__,
__LINE__,
}
// Setter-Methode fuer Nockenanzahl
- public function setNumCams ($cams) {
+ public final function setNumCams ($cams) {
if ((defined('DEBUG_DRIVE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Nockenanzahl wird auf <strong>%d</strong> Nocken gesetzt.<br />\n",
__CLASS__,
__LINE__,
}
// Setter for price
- public function setPrice ($price) {
+ public final function setPrice ($price) {
$this->price = (float) $price;
}
// Getter for price
- public function getPrice () {
+ public final function getPrice () {
return $this->price;
}