Exemplo n.º 1
0
 public function __construct($pattern, $errorMsg, $localPattern = null)
 {
     parent::__construct($errorMsg);
     $this->pattern = $pattern;
     $this->localPattern = $localPattern !== null ? $localPattern : $pattern;
 }
Exemplo n.º 2
0
 /**
  * @param string $errorMsg The message to show if the field does not pass validation
  * @param string $value    The value to allow
  */
 public function __construct($errorMsg, $value = self::ANY)
 {
     parent::__construct($errorMsg);
     $this->value = $value;
 }
 public function __construct($checked, $errorMsg)
 {
     parent::__construct($errorMsg);
     $this->checked = $checked;
 }