예제 #1
0
 /**
  * @param $value
  * @param $pattern
  * @return bool
  */
 private function valueMatchPattern($value, $pattern)
 {
     $match = $this->propertyMatcher->canMatch($pattern) && true === $this->propertyMatcher->match($value, $pattern);
     if (!$match) {
         $this->error = $this->propertyMatcher->getError();
     }
     return $match;
 }
예제 #2
0
 /**
  * @return null|string
  */
 public function getError()
 {
     return $this->matcher->getError();
 }