1204. Class

1204.1. Zend\Feed\PubSubHubbub\Model\Subscription

1204.1.1. Methods

1204.1.1.1. setSubscription

setSubscription()

Save subscription to RDMBS

Parameters:array
Return type:bool
Throws :PubSubHubbubExceptionInvalidArgumentException

1204.1.1.2. getSubscription

getSubscription()

Get subscription by ID/key

Parameters:string
Return type:array
Throws :PubSubHubbubExceptionInvalidArgumentException

1204.1.1.3. hasSubscription

hasSubscription()

Determine if a subscription matching the key exists

Parameters:string
Return type:bool
Throws :PubSubHubbubExceptionInvalidArgumentException

1204.1.1.4. deleteSubscription

deleteSubscription()

Delete a subscription

Parameters:string
Return type:bool

1204.1.1.5. getNow

getNow()

Get a new DateTime or the one injected for testing

Return type:DateTime

1204.1.1.6. setNow

setNow()

Set a DateTime instance for assisting with unit testing

Parameters:DateTime
Return type:Subscription