35 lines
565 B
PHP
35 lines
565 B
PHP
|
<?php
|
||
|
/*
|
||
|
* To change this template, choose Tools | Templates
|
||
|
* and open the template in the editor.
|
||
|
*/
|
||
|
|
||
|
namespace Doctrine\ORM\Query\AST;
|
||
|
|
||
|
/**
|
||
|
* ExistsExpression ::= ["NOT"] "EXISTS" "(" Subselect ")"
|
||
|
*
|
||
|
* @author robo
|
||
|
*/
|
||
|
class ExistsExpression extends Node
|
||
|
{
|
||
|
private $_not = false;
|
||
|
private $_subselect;
|
||
|
|
||
|
public function __construct($subselect)
|
||
|
{
|
||
|
$this->_subselect = $subselect;
|
||
|
}
|
||
|
|
||
|
public function setNot($bool)
|
||
|
{
|
||
|
$this->_not = $bool;
|
||
|
}
|
||
|
|
||
|
public function getNot()
|
||
|
{
|
||
|
return $this->_not;
|
||
|
}
|
||
|
}
|
||
|
|