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