2009-01-19 18:40:12 +00:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* To change this template, choose Tools | Templates
|
|
|
|
* and open the template in the editor.
|
|
|
|
*/
|
|
|
|
|
2009-01-22 19:38:10 +00:00
|
|
|
namespace Doctrine\ORM\Query\AST;
|
|
|
|
|
2009-01-19 18:40:12 +00:00
|
|
|
/**
|
|
|
|
* ConditionalTerm ::= ConditionalFactor {"AND" ConditionalFactor}*
|
|
|
|
*
|
|
|
|
* @author robo
|
|
|
|
*/
|
2009-01-22 19:38:10 +00:00
|
|
|
class ConditionalTerm extends Node
|
2009-01-19 18:40:12 +00:00
|
|
|
{
|
|
|
|
private $_conditionalFactors = array();
|
|
|
|
|
|
|
|
public function __construct(array $conditionalFactors)
|
|
|
|
{
|
|
|
|
$this->_conditionalFactors = $conditionalFactors;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getConditionalFactors()
|
|
|
|
{
|
|
|
|
return $this->_conditionalFactors;
|
|
|
|
}
|
2009-03-23 17:39:33 +00:00
|
|
|
|
|
|
|
public function dispatch($sqlWalker)
|
|
|
|
{
|
|
|
|
return $sqlWalker->walkConditionalTerm($this);
|
|
|
|
}
|
2009-02-20 05:46:20 +00:00
|
|
|
}
|