public function __construct($options = null) { parent::__construct($options); if (isset($options['useStaticList']) && $options['useStaticList']) { $this->_type = EnumeratedService::TIME_ZONE_STATIC_ENUM_NAME; } }
public function isValid($data, $context = null, $removeNotPresentFields = false) { if ($this->hasEmptyList()) { throw new ForbiddenException('User has no available regions'); } return parent::isValid($data, $context, $removeNotPresentFields); }