2009-03-21 15:49:58 +03:00
|
|
|
<?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;
|
|
|
|
}
|
2009-03-23 20:39:33 +03:00
|
|
|
|
|
|
|
public function dispatch($sqlWalker)
|
|
|
|
{
|
|
|
|
return $sqlWalker->walkNullComparisonExpression($this);
|
|
|
|
}
|
2009-03-21 15:49:58 +03:00
|
|
|
}
|
|
|
|
|