// String absichern
$merchantName = (string) $merchantName;
- // Instanz holen
+ // Get new instance
$merchantInstance = new Merchant();
// Debug message
}
// Setter for merchant name
- public function setMerchantName ($merchantName) {
+ public final function setMerchantName ($merchantName) {
// Secure string
$merchantName = (string) $merchantName;
}
// Getter for merchant name
- public function getMerchantName () {
+ public final function getMerchantName () {
if ((defined('DEBUG_MERCHANT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Der Händlername <strong>%s</strong> wird verlangt.<br />\n",
__CLASS__,
__LINE__,
}
// Setter for harbor instance
- public function setHarborInstance (Harbor $harborInstance) {
+ public final function setHarborInstance (Harbor $harborInstance) {
if ((defined('DEBUG_MERCHANT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Der Händler <strong>%s</strong> lässt sich am <strong>%s</strong> nieder.<br />\n",
__CLASS__,
__LINE__,
}
// Getter for harbor instance
- public function getHarborInstance () {
+ public final function getHarborInstance () {
if ((defined('DEBUG_MERCHANT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Der Händler <strong>%s</strong> hat sich am <strong>%s</strong> niedergelassen.<br />\n",
__CLASS__,
__LINE__,
}
// Get a price from the merchant's list
- public function getPriceFromList (ItemIsTradeable $itemInstance) {
+ public final function getPriceFromList (ItemIsTradeable $itemInstance) {
$price = 0;
// Iterate throw whole list