_firstSimpleArithmeticExpression; } public function getSecondSimpleArithmeticExpression() { return $this->_secondSimpleArithmeticExpression; } /** * @override */ public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker) { //TODO: Use platform to get SQL return 'SQRT(' . $sqlWalker->walkSimpleArithmeticExpression($this->_firstSimpleArithmeticExpression) . ', ' . $sqlWalker->walkSimpleArithmeticExpression($this->_secondSimpleArithmeticExpression) . ')'; } /** * @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(')'); } }