class DefaultStorageStrategy implements IStorageStrategy (View source)

Default storage strategy implementation.

Methods

__construct($config)

No description

Get()

Gets the current authorization token.

Store(OAuthToken $token)

Stores authorization token passed as an argument.

Details

__construct($config)

No description

Parameters

$config

OAuthToken Get()

Gets the current authorization token.

Return Value

OAuthToken

Currently stored token instance or null.

Exceptions

Exception

Store(OAuthToken $token)

Stores authorization token passed as an argument.

Parameters

OAuthToken $token

Token instance to be stored.