You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use Wwwision\SubscriptionEngine\Subscription\Subscription;
use Wwwision\SubscriptionEngine\Subscription\Subscriptions;
/**
* Contracts for a "Subscription repository"
* It allows to persist and update the state of subscriptions and allows to lock access such that multiple processes cannot change the same subscription at the same time
*/
interface SubscriptionStore
{
public function setup(): void;
public function findByCriteria(SubscriptionCriteria $criteria): Subscriptions;
public function findByCriteriaForUpdate(SubscriptionCriteria $criteria): Subscriptions;
public function add(Subscription $subscription): void;
public function update(Subscription $subscription): void;