Exemplo n.º 1
0
 private function processMatcher(FieldValuesFactory $factory)
 {
     $this->match(Lexer::T_TILDE);
     $caseInsensitive = false;
     // Check for case insensitive.
     if ($this->lexer->isNextToken(Lexer::T_STRING) && 'i' === strtolower($this->lexer->lookahead['value'])) {
         $caseInsensitive = true;
         $this->match(Lexer::T_STRING);
     }
     $type = $this->getPatternMatchOperator();
     $value = $this->stringValue();
     $factory->addPatterMatch($type, $value, $caseInsensitive);
 }