/** * @inheritdoc */ public function getCustomAttribute($attributeCode) { switch ($attributeCode) { case self::$stateAttributeCode: $this->setStateValue(); break; case self::$customerGroupAttributeCode: $this->setCustomerGroupValue(); break; } return parent::getCustomAttribute($attributeCode); }
/** * @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); }