. */ namespace Doctrine\ORM\Query\AST; /** * ConditionalPrimary ::= SimpleConditionalExpression | "(" ConditionalExpression ")" * * @link www.doctrine-project.org * @since 2.0 * @author Guilherme Blanco * @author Jonathan Wage * @author Roman Borschel */ class ConditionalPrimary extends Node { /** * @var Node|null */ public $simpleConditionalExpression; /** * @var ConditionalExpression|null */ public $conditionalExpression; /** * @return bool */ public function isSimpleConditionalExpression() { return (bool) $this->simpleConditionalExpression; } /** * @return bool */ public function isConditionalExpression() { return (bool) $this->conditionalExpression; } /** * {@inheritdoc} */ public function dispatch($sqlWalker) { return $sqlWalker->walkConditionalPrimary($this); } }