. */ /** * UpdateStatement ::= UpdateClause [WhereClause] * * @author Guilherme Blanco * @author Janne Vanhala * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link http://www.phpdoctrine.org * @since 2.0 * @version $Revision$ */ class Doctrine_ORM_Query_Parser_UpdateStatement extends Doctrine_ORM_Query_Parser { protected $_AST = null; public function syntax($paramHolder) { // UpdateStatement ::= UpdateClause [WhereClause] $this->_AST = $this->AST('UpdateStatement'); $this->_AST->setUpdateClause($this->parse('UpdateClause', $paramHolder)); if ($this->_isNextToken(Doctrine_ORM_Query_Token::T_WHERE)) { $this->_AST->setWhereClause($this->parse('WhereClause', $paramHolder)); } // Return AST node return $this->_AST; } }