Gaufrette\Adapter\Ftp::getConnection PHP Method

getConnection() private method

Returns an opened ftp connection resource. If the connection is not already opened, it open it before.
private getConnection ( ) : resource
return resource The ftp connection
    private function getConnection()
    {
        if (!$this->isConnected()) {
            $this->connect();
        }
        return $this->connection;
    }