. */ /** * 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 Doctrine_ORM_Query_AST_JoinVariableDeclaration extends Doctrine_ORM_Query_AST { protected $_join = null; protected $_indexBy = null; /* Setters */ public function setJoin($join) { $this->_join = $join; } public function setIndexBy($indexBy) { $this->_indexBy = $indexBy; } /* Getters */ public function getJoin() { return $this->_join; } public function getIndexBy() { return $this->_indexBy; } /* REMOVE ME LATER. COPIED METHODS FROM SPLIT OF PRODUCTION INTO "AST" AND "PARSER" */ public function buildSql() { return $this->_join->buildSql() . (isset($this->_indexby) ? $this->_indexby->buildSql() . ' ' : ''); } }