azure-storage-file/src/File/Models/GetFileResult.php
public static function create(
        array $headers,
        StreamInterface $body,
        array $metadata
    ) {
        $result = new GetFileResult();
        $result->setContentStream($body->detach());
        $result->setProperties(FileProperties::createFromHttpHeaders($headers));
        $result->setMetadata(is_null($metadata) ? array() : $metadata);

        return $result;
    }
public static function create(
        array $headers,
        StreamInterface $body,
        array $metadata
    ) {
        $result = new GetFileResult();
        $result->setContentStream($body->detach());
        $result->setProperties(FileProperties::createFromHttpHeaders($headers));
        $result->setMetadata(is_null($metadata) ? array() : $metadata);

        return $result;
    }
Creates GetFileResult from getFile call.

@param array           $headers  The HTTP response headers.
@param StreamInterface $body     The response body.
@param array           $metadata The file metadata.

@internal

@return GetFileResult