src/Titon/Db/Query.php
public function getAlias() {
        if ($this->getJoins() || $this instanceof SubQuery || in_array($this->getType(), [self::CREATE_INDEX, self::DROP_INDEX])) {
            return $this->_alias;
        }

        return null;
    }
public function getAlias() {
        if ($this->getJoins() || $this instanceof SubQuery || in_array($this->getType(), [self::CREATE_INDEX, self::DROP_INDEX])) {
            return $this->_alias;
        }

        return null;
    }
public function getAlias ( ) { if ( $ this -> getJoins ( ) || $ this instanceof SubQuery || in_array ( $ this -> getType ( ) , [ self :: CREATE_INDEX , self :: DROP_INDEX ] ) ) { return $ this -> _alias ; } return null ; }
Only return the alias if joins have been set or this is a sub-query.

@return string
Only return the alias if joins have been set or this is a sub - query .