NullComparisonExpression.php 809 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Doctrine\ORM\Query\AST;

/**
 * NullComparisonExpression ::= (SingleValuedPathExpression | InputParameter) "IS" ["NOT"] "NULL"
 *
 * @author robo
 */
class NullComparisonExpression extends Node
{
    private $_expression;
    private $_not;

    public function __construct($expression)
    {
        $this->_expression = $expression;
    }

    public function getExpression()
    {
        return $this->_expression;
    }

    public function setNot($bool)
    {
        $this->_not = $bool;
    }

    public function isNot()
    {
        return $this->_not;
    }
38 39 40 41 42

    public function dispatch($sqlWalker)
    {
        return $sqlWalker->walkNullComparisonExpression($this);
    }
43 44
}