Gaufrette\Adapter\AzureBlobStorage::getMetadata PHP Method

getMetadata() public method

public getMetadata ( $key )
    public function getMetadata($key)
    {
        $this->init();
        try {
            $properties = $this->blobProxy->getBlobProperties($this->containerName, $key);
            return $properties->getMetadata();
        } catch (ServiceException $e) {
            $errorCode = $this->getErrorCodeFromServiceException($e);
            throw new \RuntimeException(sprintf('Failed to get metadata for blob "%s" in container "%s": %s (%s).', $key, $this->containerName, $e->getErrorText(), $errorCode), $e->getCode());
        }
    }