public static function create(array $headers)
    {
        $result  = new CopyFileResult();
        $headers = array_change_key_case($headers);

        $date          = $headers[Resources::LAST_MODIFIED];
        $date          = Utilities::rfc1123ToDateTime($date);

        $result->setCopyStatus($headers[Resources::X_MS_COPY_STATUS]);
        $result->setCopyID($headers[Resources::X_MS_COPY_ID]);
        $result->setETag($headers[Resources::ETAG]);
        $result->setLastModified($date);

        return $result;
    }
public static function create(array $headers)
    {
        $result  = new CopyFileResult();
        $headers = array_change_key_case($headers);

        $date          = $headers[Resources::LAST_MODIFIED];
        $date          = Utilities::rfc1123ToDateTime($date);

        $result->setCopyStatus($headers[Resources::X_MS_COPY_STATUS]);
        $result->setCopyID($headers[Resources::X_MS_COPY_ID]);
        $result->setETag($headers[Resources::ETAG]);
        $result->setLastModified($date);

        return $result;
    }
public static function create ( array $ headers ) { $ result = new CopyFileResult ( ) ; $ headers = array_change_key_case ( $ headers ) ; $ date = $ headers [ Resources :: LAST_MODIFIED ] ; $ date = Utilities :: rfc1123ToDateTime ( $ date ) ; $ result -> setCopyStatus ( $ headers [ Resources :: X_MS_COPY_STATUS ] ) ; $ result -> setCopyID ( $ headers [ Resources :: X_MS_COPY_ID ] ) ; $ result -> setETag ( $ headers [ Resources :: ETAG ] ) ; $ result -> setLastModified ( $ date ) ; return $ result ; }
Creates CopyFileResult object from parsed response header.

@param array $headers HTTP response headers

@internal

@return CopyFileResult
Creates CopyFileResult object from parsed response header .