. */ namespace Doctrine\ORM\Query\AST; /** * WhenClause ::= "WHEN" ConditionalExpression "THEN" ScalarExpression * * @since 2.2 * * @link www.doctrine-project.org * @author Benjamin Eberlei * @author Guilherme Blanco * @author Jonathan Wage * @author Roman Borschel */ class WhenClause extends Node { /** * @var ConditionalExpression */ public $caseConditionExpression = null; /** * @var mixed */ public $thenScalarExpression = null; /** * @param ConditionalExpression $caseConditionExpression * @param mixed $thenScalarExpression */ public function __construct($caseConditionExpression, $thenScalarExpression) { $this->caseConditionExpression = $caseConditionExpression; $this->thenScalarExpression = $thenScalarExpression; } /** * {@inheritdoc} */ public function dispatch($sqlWalker) { return $sqlWalker->walkWhenClauseExpression($this); } }