interface IStorageStrategy (View source)

Storage strategy interface.

Methods

Get()

Gets the current authorization token.

Store(OAuthToken $token)

Stores authorization token passed as an argument.

Details

OAuthToken Get()

Gets the current authorization token.

Return Value

OAuthToken

Currently stored token instance or null.

Store(OAuthToken $token)

Stores authorization token passed as an argument.

Parameters

OAuthToken $token

Token instance to be stored.