/** * {@inheritdoc} */ public function __get($property) { if ($property === 'values') { return $this->values; } if ($property === 'placeholder') { if (!isset($this->class)) { throw new InvalidPropertyException(tr('Invalid use of anonymous enum type')); } return '%' . $this->class; } return parent::__get($property); }