. */ namespace Doctrine\ORM\Query\AST; /** * JoinVariableDeclaration ::= Join [IndexBy] * * @author Guilherme Blanco * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link http://www.phpdoctrine.org * @since 2.0 * @version $Revision$ */ class JoinVariableDeclaration extends Node { protected $_join = null; protected $_indexBy = null; public function __construct($join, $indexBy) { $this->_join = $join; $this->_indexBy = $indexBy; } /* Getters */ public function getJoin() { return $this->_join; } public function getIndexBy() { return $this->_indexBy; } public function dispatch($sqlWalker) { return $sqlWalker->walkJoinVariableDeclaration($this); } }