function setDefaultValue($value) { Assert::isTrue(!$value || in_array($value, $this->getAvailableValues()), 'trying to set a default value that is out of options range'); return parent::setDefaultValue($value); }