. */ namespace Doctrine\ORM\Query\AST; /** * UpdateStatement = UpdateClause [WhereClause] * * @link www.doctrine-project.org * @since 2.0 * @author Guilherme Blanco * @author Jonathan Wage * @author Roman Borschel */ class UpdateStatement extends Node { /** * @var UpdateClause */ public $updateClause; /** * @var WhereClause|null */ public $whereClause; /** * @param UpdateClause $updateClause */ public function __construct($updateClause) { $this->updateClause = $updateClause; } /** * {@inheritdoc} */ public function dispatch($sqlWalker) { return $sqlWalker->walkUpdateStatement($this); } }