Zend\Feed\PubSubHubbub\Model\Subscription
Synopsis
class Subscription
extends AbstractModel
implements
SubscriptionPersistenceInterface
{
- // members
- protected DateTime $now;
- // Inherited members from AbstractModel
- protected TableGatewayInterface $db;
- // methods
- public bool setSubscription()
- public array getSubscription()
- public bool hasSubscription()
- public bool deleteSubscription()
- public DateTime getNow()
- public Subscription setNow()
- // Inherited methods from AbstractModel
- public void __construct()
Hierarchy
Extends
Implements
Members
protected
- $db
—
Zend\Db\TableGateway\TableGatewayInterface
Zend\Db\TableGateway\TableGatewayInterface instance to host database methods - $now
—
DateTime
Common DateTime object to assist with unit testing
Methods
public
- deleteSubscription() — Delete a subscription
- getNow() — Get a new DateTime or the one injected for testing
- getSubscription() — Get subscription by ID/key
- hasSubscription() — Determine if a subscription matching the key exists
- setNow() — Set a DateTime instance for assisting with unit testing
- setSubscription() — Save subscription to RDMBS