. */ namespace Doctrine\ORM\Query\AST; /** * UpdateStatement = UpdateClause [WhereClause] * * @author Guilherme Blanco * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link http://www.doctrine-project.org * @since 2.0 * @version $Revision$ */ class UpdateStatement extends Node { private $_updateClause; private $_whereClause; public function __construct($updateClause) { $this->_updateClause = $updateClause; } public function setWhereClause($whereClause) { $this->_whereClause = $whereClause; } public function getUpdateClause() { return $this->_updateClause; } public function getWhereClause() { return $this->_whereClause; } public function dispatch($sqlWalker) { return $sqlWalker->walkUpdateStatement($this); } }