Example #1
0
 /**
  * @inheritdoc
  */
 public function getCustomAttribute($attributeCode)
 {
     switch ($attributeCode) {
         case self::$stateAttributeCode:
             $this->setStateValue();
             break;
         case self::$customerGroupAttributeCode:
             $this->setCustomerGroupValue();
             break;
     }
     return parent::getCustomAttribute($attributeCode);
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function getCustomAttribute($attributeCode)
 {
     switch ($attributeCode) {
         case self::$genderAttributeCode:
             $this->setGenderValue();
             break;
         case self::$groupAttributeCode:
             $this->setCustomerGroupValue();
             break;
         case self::$websiteAttributeCode:
             $this->setWebsiteValue();
             break;
     }
     return parent::getCustomAttribute($attributeCode);
 }