. */ namespace Doctrine\ORM\Query\AST; /** * CoalesceExpression ::= "COALESCE" "(" ScalarExpression {"," ScalarExpression}* ")" * * @since 2.1 * * @link www.doctrine-project.org * @author Benjamin Eberlei * @author Guilherme Blanco * @author Jonathan Wage * @author Roman Borschel */ class CoalesceExpression extends Node { /** * @var array */ public $scalarExpressions = array(); /** * @param array $scalarExpressions */ public function __construct(array $scalarExpressions) { $this->scalarExpressions = $scalarExpressions; } /** * {@inheritdoc} */ public function dispatch($sqlWalker) { return $sqlWalker->walkCoalesceExpression($this); } }