1 | <?php |
||
16 | abstract class AbstractSubscriptionListener implements EventSubscriberInterface |
||
17 | { |
||
18 | /** |
||
19 | * Handle creating a subscription. |
||
20 | * |
||
21 | * @param SubscriptionCreatedEvent $event The raised event. |
||
22 | */ |
||
23 | abstract public function onSubscriptionCreated(SubscriptionCreatedEvent $event); |
||
24 | |||
25 | /** |
||
26 | * Handle changing a subscription. |
||
27 | * |
||
28 | * @param SubscriptionChangedEvent $event The raised event. |
||
29 | */ |
||
30 | abstract public function onSubscriptionChanged(SubscriptionChangedEvent $event); |
||
31 | |||
32 | /** |
||
33 | * Handle canceling a subscription. |
||
34 | * |
||
35 | * @param SubscriptionCanceledEvent $event The raised event. |
||
36 | */ |
||
37 | abstract public function onSubscriptionCanceled(SubscriptionCanceledEvent $event); |
||
38 | |||
39 | /** |
||
40 | * Handle closing a subscription. |
||
41 | * |
||
42 | * @param SubscriptionClosedEvent $event The raised event. |
||
43 | */ |
||
44 | abstract public function onSubscriptionClosed(SubscriptionClosedEvent $event); |
||
45 | |||
46 | /** |
||
47 | * Handle reactivating a subscription. |
||
48 | * |
||
49 | * @param SubscriptionReactivatedEvent $event The raised event. |
||
50 | */ |
||
51 | abstract public function onSubscriptionReactivated(SubscriptionReactivatedEvent $event); |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public static function getSubscribedEvents() |
||
66 | } |
||
67 |