* @copyright 2016 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ namespace MicrosoftAzure\Storage\Blob\Models; use MicrosoftAzure\Storage\Common\Internal\MetadataTrait; /** * Holds result of calling getBlobProperties * * @category Microsoft * @package MicrosoftAzure\Storage\Blob\Models * @author Azure Storage PHP SDK * @copyright 2016 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ class GetBlobPropertiesResult { use MetadataTrait; private $_properties; /** * Gets blob properties. * * @return BlobProperties */ public function getProperties() { return $this->_properties; } /** * Sets blob properties. * * @param BlobProperties $properties value. * * @return void */ protected function setProperties($properties) { $this->_properties = $properties; } /** * Create a instance using the given headers. * * @param array $headers response headers parsed in an array * * @internal * * @return GetBlobPropertiesResult */ public static function create(array $headers) { $result = static::createMetadataResult($headers); $result->setProperties(BlobProperties::createFromHttpHeaders($headers)); return $result; } }