/** * @override */ public function parse(\Doctrine\ORM\Query\Parser $parser) { $lexer = $parser->getLexer(); $parser->match($lexer->lookahead['value']); $parser->match('('); $this->_firstSimpleArithmeticExpression = $parser->_SimpleArithmeticExpression(); $parser->match(','); $this->_secondSimpleArithmeticExpression = $parser->_SimpleArithmeticExpression(); $parser->match(')'); }
/** * @override */ public function parse(\Doctrine\ORM\Query\Parser $parser) { $lexer = $parser->getLexer(); $parser->match($lexer->lookahead['value']); $parser->match('('); $this->_firstStringPrimary = $parser->_StringPrimary(); $parser->match(','); $this->_secondStringPrimary = $parser->_StringPrimary(); if ($lexer->isNextToken(',')) { $parser->match(','); $this->_simpleArithmeticExpression = $parser->_SimpleArithmeticExpression(); } $parser->match(')'); }