public static function create(array $headers)
    {
        $result = new UpdateMessageResult();
        $result->setPopReceipt(Utilities::tryGetValueInsensitive(
            Resources::X_MS_POPRECEIPT,
            $headers
        ));
        $timeNextVisible = Utilities::tryGetValueInsensitive(
            Resources::X_MS_TIME_NEXT_VISIBLE,
            $headers
        );
        $date   = Utilities::rfc1123ToDateTime($timeNextVisible);
        $result->setTimeNextVisible($date);

        return $result;
    }
public static function create(array $headers)
    {
        $result = new UpdateMessageResult();
        $result->setPopReceipt(Utilities::tryGetValueInsensitive(
            Resources::X_MS_POPRECEIPT,
            $headers
        ));
        $timeNextVisible = Utilities::tryGetValueInsensitive(
            Resources::X_MS_TIME_NEXT_VISIBLE,
            $headers
        );
        $date   = Utilities::rfc1123ToDateTime($timeNextVisible);
        $result->setTimeNextVisible($date);

        return $result;
    }
public static function create ( array $ headers ) { $ result = new UpdateMessageResult ( ) ; $ result -> setPopReceipt ( Utilities :: tryGetValueInsensitive ( Resources :: X_MS_POPRECEIPT , $ headers ) ) ; $ timeNextVisible = Utilities :: tryGetValueInsensitive ( Resources :: X_MS_TIME_NEXT_VISIBLE , $ headers ) ; $ date = Utilities :: rfc1123ToDateTime ( $ timeNextVisible ) ; $ result -> setTimeNextVisible ( $ date ) ; return $ result ; }
Creates an instance with the given response headers.

@param  array  $headers The response headers used to create the instance.

@internal

@return UpdateMessageResult
Creates an instance with the given response headers .