2009-03-15 00:19:50 +03:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* To change this template, choose Tools | Templates
|
|
|
|
* and open the template in the editor.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Doctrine\ORM\Query\AST;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* InExpression ::= StateFieldPathExpression ["NOT"] "IN" "(" (Literal {"," Literal}* | Subselect) ")"
|
|
|
|
*
|
|
|
|
* @author robo
|
|
|
|
*/
|
|
|
|
class InExpression extends Node
|
|
|
|
{
|
|
|
|
private $_pathExpression;
|
|
|
|
private $_not = false;
|
|
|
|
private $_literals = array();
|
|
|
|
private $_subselect;
|
|
|
|
|
|
|
|
public function __construct($pathExpression)
|
|
|
|
{
|
|
|
|
$this->_pathExpression = $pathExpression;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setLiterals(array $literals)
|
|
|
|
{
|
|
|
|
$this->_literals = $literals;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getLiterals()
|
|
|
|
{
|
|
|
|
return $this->_literals;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setSubselect($subselect)
|
|
|
|
{
|
|
|
|
$this->_subselect = $subselect;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getSubselect()
|
|
|
|
{
|
|
|
|
return $this->_subselect;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setNot($bool)
|
|
|
|
{
|
|
|
|
$this->_not = $bool;
|
|
|
|
}
|
|
|
|
|
2009-03-21 15:49:58 +03:00
|
|
|
public function isNot()
|
2009-03-15 00:19:50 +03:00
|
|
|
{
|
|
|
|
return $this->_not;
|
|
|
|
}
|
2009-03-21 15:49:58 +03:00
|
|
|
|
|
|
|
public function getPathExpression()
|
|
|
|
{
|
|
|
|
return $this->_pathExpression;
|
|
|
|
}
|
2009-03-15 00:19:50 +03:00
|
|
|
}
|
|
|
|
|