You are here

interface SubscriptionPersistenceInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/PubSubHubbub/Model/SubscriptionPersistenceInterface.php \Zend\Feed\PubSubHubbub\Model\SubscriptionPersistenceInterface

Hierarchy

Expanded class hierarchy of SubscriptionPersistenceInterface

All classes that implement SubscriptionPersistenceInterface

File

vendor/zendframework/zend-feed/src/PubSubHubbub/Model/SubscriptionPersistenceInterface.php, line 12

Namespace

Zend\Feed\PubSubHubbub\Model
View source
interface SubscriptionPersistenceInterface {

  /**
   * Save subscription to RDMBS
   *
   * @param array $data The key must be stored here as a $data['id'] entry
   * @return bool
   */
  public function setSubscription(array $data);

  /**
   * Get subscription by ID/key
   *
   * @param  string $key
   * @return array
   */
  public function getSubscription($key);

  /**
   * Determine if a subscription matching the key exists
   *
   * @param  string $key
   * @return bool
   */
  public function hasSubscription($key);

  /**
   * Delete a subscription
   *
   * @param string $key
   * @return bool
   */
  public function deleteSubscription($key);

}

Members

Namesort descending Modifiers Type Description Overrides
SubscriptionPersistenceInterface::deleteSubscription public function Delete a subscription 1
SubscriptionPersistenceInterface::getSubscription public function Get subscription by ID/key 1
SubscriptionPersistenceInterface::hasSubscription public function Determine if a subscription matching the key exists 1
SubscriptionPersistenceInterface::setSubscription public function Save subscription to RDMBS 1