protected function getBucketNameFromId($id)
    {
        $buckets = $this->listBuckets();

        foreach ($buckets as $bucket) {
            if ($bucket->getId() === $id) {
                return $bucket->getName();
            }
        }

        return null;
    }
protected function getBucketNameFromId($id)
    {
        $buckets = $this->listBuckets();

        foreach ($buckets as $bucket) {
            if ($bucket->getId() === $id) {
                return $bucket->getName();
            }
        }

        return null;
    }
protected function getBucketNameFromId ( $ id ) { $ buckets = $ this -> listBuckets ( ) ; foreach ( $ buckets as $ bucket ) { if ( $ bucket -> getId ( ) === $ id ) { return $ bucket -> getName ( ) ; } } return null ; }
Maps the provided bucket ID to the appropriate bucket name.

@param $id
@return null
Maps the provided bucket ID to the appropriate bucket name .