azure-storage-common/src/Common/Internal/MetadataTrait.php
public static function createMetadataResult(array $responseHeaders)
    {
        $result   = new static();
        $metadata = Utilities::getMetadataArray($responseHeaders);
        $date     = Utilities::tryGetValueInsensitive(
            Resources::LAST_MODIFIED,
            $responseHeaders
        );
        $date     = Utilities::rfc1123ToDateTime($date);
        $result->setETag(Utilities::tryGetValueInsensitive(
            Resources::ETAG,
            $responseHeaders
        ));
        $result->setMetadata($metadata);
        $result->setLastModified($date);

        return $result;
    }
public static function createMetadataResult(array $responseHeaders)
    {
        $result   = new static();
        $metadata = Utilities::getMetadataArray($responseHeaders);
        $date     = Utilities::tryGetValueInsensitive(
            Resources::LAST_MODIFIED,
            $responseHeaders
        );
        $date     = Utilities::rfc1123ToDateTime($date);
        $result->setETag(Utilities::tryGetValueInsensitive(
            Resources::ETAG,
            $responseHeaders
        ));
        $result->setMetadata($metadata);
        $result->setLastModified($date);

        return $result;
    }
Create an instance using the response headers from the API call.

@param  array  $responseHeaders The array contains all the response headers

@internal

@return GetShareMetadataResult