2009-03-19 15:43:48 +03:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* To change this template, choose Tools | Templates
|
|
|
|
* and open the template in the editor.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Doctrine\ORM\Query\AST;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Description of BetweenExpression
|
|
|
|
*
|
|
|
|
* @author robo
|
|
|
|
*/
|
|
|
|
class BetweenExpression extends Node
|
|
|
|
{
|
|
|
|
private $_baseExpression;
|
|
|
|
private $_leftBetweenExpression;
|
|
|
|
private $_rightBetweenExpression;
|
|
|
|
private $_not;
|
|
|
|
|
|
|
|
public function __construct($baseExpr, $leftExpr, $rightExpr)
|
|
|
|
{
|
|
|
|
$this->_baseExpression = $baseExpr;
|
|
|
|
$this->_leftBetweenExpression = $leftExpr;
|
|
|
|
$this->_rightBetweenExpression = $rightExpr;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getBaseExpression()
|
|
|
|
{
|
|
|
|
return $this->_baseExpression;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getLeftBetweenExpression()
|
|
|
|
{
|
|
|
|
return $this->_leftBetweenExpression;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getRightBetweenExpression()
|
|
|
|
{
|
|
|
|
return $this->_rightBetweenExpression;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setNot($bool)
|
|
|
|
{
|
|
|
|
$this->_not = $bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getNot()
|
|
|
|
{
|
|
|
|
return $this->_not;
|
|
|
|
}
|
2009-03-23 20:39:33 +03:00
|
|
|
|
|
|
|
public function dispatch($sqlWalker)
|
|
|
|
{
|
|
|
|
return $sqlWalker->walkBetweenExpression($this);
|
|
|
|
}
|
2009-03-19 15:43:48 +03:00
|
|
|
}
|
|
|
|
|