Example #1
0
 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.');
     }
 }
Example #2
0
 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 ');
     }
 }