/** * {@inheritDoc} */ public function validate($value) { $pattern = $this->rule->getPattern(); if (!is_null($pattern)) { return (bool) preg_match($pattern, $value); } return false; }
/** * {@inheritDoc} */ public function validate($value) { $pattern = $this->rule->getPattern(); if (!is_null($pattern)) { return (bool) preg_match($pattern, $value); } return false; }