Luxifer\DQL\String\IfElse::parse PHP Method

parse() public method

public parse ( Parser $parser )
$parser Doctrine\ORM\Query\Parser
    public function parse(Parser $parser)
    {
        $parser->match(Lexer::T_IDENTIFIER);
        $parser->match(Lexer::T_OPEN_PARENTHESIS);
        $this->condition = $parser->ConditionalExpression();
        $parser->match(Lexer::T_COMMA);
        $this->isTrueStatement = $parser->ArithmeticExpression();
        $parser->match(Lexer::T_COMMA);
        $this->isFalseStatement = $parser->ArithmeticExpression();
        $parser->match(Lexer::T_CLOSE_PARENTHESIS);
    }