Example #1
0
 public function __construct($brandId, $currency, $customerTypeId, $depositDays, $depositAmount, $counterOfferNo)
 {
     $this->depositDays = $depositDays;
     $this->brandId = $brandId;
     $this->currency = $currency;
     $this->customerType = $customerTypeId == 'individual' ? 'individual' : 'corporate';
     $this->depositAmount = $depositAmount;
     $this->counterOfferNo = $counterOfferNo;
     parent::__construct($this->modifierName . $currency);
 }
Example #2
0
 public function __construct($customerType, $brandId)
 {
     $dict = new Logic_Dictionary();
     $customerTypeId = $dict->getDictionaryEntryId('client_type', $customerType);
     if ($customerTypeId === null) {
         throw new Exception('Niepoprawny kod słownikowy typu klienta!');
     }
     $addonTypeModel = new AddonType();
     $addonTypeId = $addonTypeModel->getAddonTypeId($this->addonCode);
     if ($addonTypeId === null) {
         throw new Exception('Niepoprawny kod typu dodatku!');
     }
     $this->addonTypeId = $addonTypeId;
     $this->customerTypeId = $customerTypeId;
     $this->brandId = $brandId;
     parent::__construct($this->addonName);
 }
Example #3
0
 public function __construct($depositDays)
 {
     $this->depositDays = $depositDays;
     parent::__construct($this->modifierName);
 }
Example #4
0
 public function getModifierData()
 {
     return array_merge(parent::getModifierData(), array(self::KEY_RISE_VALUE => $this->riseValue, self::KEY_COMMENT => $this->comment));
 }
Example #5
0
 public function __construct($depositDays, $currency)
 {
     $this->depositDays = $depositDays;
     $this->currency = $currency;
     parent::__construct($this->modifierName);
 }
Example #6
0
 public function __construct($customerExpectance = null)
 {
     $this->customerExpectance = $customerExpectance;
     parent::__construct($this->modifierName);
 }
Example #7
0
 public function __construct($stepNumber, $customerType)
 {
     $this->stepNumber = $stepNumber;
     $this->customerType = $customerType;
     parent::__construct($this->modifierName);
 }