src/ServiceBus/Internal/WrapAccessTokenResult.php
public static function create($response)
    {
        Validate::isString($response, 'response');

        $wrapAccessTokenResult = new self();
        parse_str($response, $parsedResponse);

        $wrapAccessTokenResult->setAccessToken(
            Utilities::tryGetValue(
                $parsedResponse, Resources::WRAP_ACCESS_TOKEN
            )
        );

        $wrapAccessTokenResult->setExpiresIn(
            Utilities::tryGetValue(
                $parsedResponse, Resources::WRAP_ACCESS_TOKEN_EXPIRES_IN
            )
        );

        return $wrapAccessTokenResult;
    }
public static function create($response)
    {
        Validate::isString($response, 'response');

        $wrapAccessTokenResult = new self();
        parse_str($response, $parsedResponse);

        $wrapAccessTokenResult->setAccessToken(
            Utilities::tryGetValue(
                $parsedResponse, Resources::WRAP_ACCESS_TOKEN
            )
        );

        $wrapAccessTokenResult->setExpiresIn(
            Utilities::tryGetValue(
                $parsedResponse, Resources::WRAP_ACCESS_TOKEN_EXPIRES_IN
            )
        );

        return $wrapAccessTokenResult;
    }
public static function create ( $ response ) { Validate :: isString ( $ response , 'response' ) ; $ wrapAccessTokenResult = new self ( ) ; parse_str ( $ response , $ parsedResponse ) ; $ wrapAccessTokenResult -> setAccessToken ( Utilities :: tryGetValue ( $ parsedResponse , Resources :: WRAP_ACCESS_TOKEN ) ) ; $ wrapAccessTokenResult -> setExpiresIn ( Utilities :: tryGetValue ( $ parsedResponse , Resources :: WRAP_ACCESS_TOKEN_EXPIRES_IN ) ) ; return $ wrapAccessTokenResult ; }
Creates WrapAccessTokenResult object from parsed XML response.

@param string $response The get WRAP access token response

@return WrapAccessTokenResult
Creates WrapAccessTokenResult object from parsed XML response .