Methods

Delete a subscription

deleteSubscription(string $key) : bool

Parameters

$key

string

Returns

bool

Get subscription by ID/key

getSubscription(string $key) : array

Parameters

$key

string

Returns

array

Determine if a subscription matching the key exists

hasSubscription(string $key) : bool

Parameters

$key

string

Returns

bool

Save subscription to RDMBS

setSubscription(array $data) : bool

Parameters

$data

array

The key must be stored here as a $data['id'] entry

Returns

bool