match(Lexer::T_IDENTIFIER); $parser->match(Lexer::T_OPEN_PARENTHESIS); $this->dateExpression = $parser->ArithmeticPrimary(); $parser->match(Lexer::T_COMMA); $this->timezoneExpression = $parser->ArithmeticPrimary(); $parser->match(Lexer::T_CLOSE_PARENTHESIS); } public function getSql(SqlWalker $sqlWalker) { return sprintf( '%s AT TIME ZONE %s', $this->dateExpression->dispatch($sqlWalker), $this->timezoneExpression->dispatch($sqlWalker) ); } }