public function __construct(Element $element, $options = array()) { parent::__construct($element, $options); if (!isset($options[self::OPT_REGEX])) { throw new \InvalidArgumentException('The RegEx validator requires a regular expression option.'); } }
public function __construct(Element $element, $options = array()) { parent::__construct($element, $options); if (!isset($options[self::OPT_OPTIONS])) { throw new \InvalidArgumentException('The InArray validator requires you to specify '); } }