3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Feed\PubSubHubbub\Model
;
12 interface SubscriptionPersistenceInterface
16 * Save subscription to RDMBS
18 * @param array $data The key must be stored here as a $data['id'] entry
21 public function setSubscription(array $data);
24 * Get subscription by ID/key
29 public function getSubscription($key);
32 * Determine if a subscription matching the key exists
37 public function hasSubscription($key);
40 * Delete a subscription
45 public function deleteSubscription($key);