1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/lib/Doctrine/ORM/Query/AST/EmptyCollectionComparisonExpression.php

41 lines
769 B
PHP
Raw Normal View History

2009-08-05 18:54:53 +04:00
<?php
namespace Doctrine\ORM\Query\AST;
/**
* EmptyCollectionComparisonExpression ::= CollectionValuedPathExpression "IS" ["NOT"] "EMPTY"
*
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
*/
class EmptyCollectionComparisonExpression 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;
}
public function dispatch($sqlWalker)
{
return $sqlWalker->walkEmptyCollectionComparisonExpression($this);
}
}