. */ namespace Doctrine\ORM\Query\AST; /** * IdentificationVariableDeclaration ::= RangeVariableDeclaration [IndexBy] {JoinVariableDeclaration}* * * @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 IdentificationVariableDeclaration extends Node { protected $_rangeVariableDeclaration = null; protected $_indexBy = null; protected $_joinVariableDeclarations = array(); public function __construct($rangeVariableDecl, $indexBy, array $joinVariableDecls) { $this->_rangeVariableDeclaration = $rangeVariableDecl; $this->_indexBy = $indexBy; $this->_joinVariableDeclarations = $joinVariableDecls; } /* Getters */ public function getRangeVariableDeclaration() { return $this->_rangeVariableDeclaration; } public function getIndexBy() { return $this->_indexBy; } public function getJoinVariableDeclarations() { return $this->_joinVariableDeclarations; } public function dispatch($sqlWalker) { return $sqlWalker->walkIdentificationVariableDeclaration($this); } }