/** * Возвращает читаемое значение для значения * @return string */ public function getReadable() { $return = null; $objects = parent::getValue(); foreach ($objects as $key => $value) { $return[$key] = $value->getReadable(); } return $return; }
/** * Возвращает значение атрибута * @return mixed */ public function getValue() { $value = parent::getValue(); return $value === null ? $this->getSectionsId() : $value; }