. */ namespace Doctrine\ORM\Query\AST; /** * DeleteStatement = DeleteClause [WhereClause] * * @author Guilherme Blanco * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link http://www.phpdoctrine.org * @since 2.0 * @version $Revision$ */ class DeleteStatement extends Node { private $_deleteClause; private $_whereClause; public function __construct($deleteClause) { $this->_deleteClause = $deleteClause; } public function setWhereClause($whereClause) { $this->_whereClause = $whereClause; } public function getDeleteClause() { return $this->_deleteClause; } public function getWhereClause() { return $this->_whereClause; } public function dispatch($sqlWalker) { return $sqlWalker->walkDeleteStatement($this); } }