. */ namespace Doctrine\ORM\Query\AST; /** * RangeVariableDeclaration ::= AbstractSchemaName ["AS"] AliasIdentificationVariable * * @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 RangeVariableDeclaration extends Node { private $_classMetadata; private $_abstractSchemaName; private $_aliasIdentificationVariable; public function __construct($classMetadata, $aliasIdentificationVar) { $this->_classMetadata = $classMetadata; $this->_abstractSchemaName = $classMetadata->name; $this->_aliasIdentificationVariable = $aliasIdentificationVar; } /* Getters */ public function getAbstractSchemaName() { return $this->_abstractSchemaName; } public function getAliasIdentificationVariable() { return $this->_aliasIdentificationVariable; } public function getClassMetadata() { return $this->_classMetadata; } public function dispatch($sqlWalker) { return $sqlWalker->walkRangeVariableDeclaration($this); } }