1 | <?php |
||
14 | abstract class AbstractCustomerListener implements EventSubscriberInterface |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Handle creating a customer. |
||
19 | * |
||
20 | * @param CustomerCreatedEvent $event The raised event. |
||
21 | */ |
||
22 | abstract public function onCustomerCreated(CustomerCreatedEvent $event); |
||
23 | |||
24 | /** |
||
25 | * Handle changing a customer. |
||
26 | * |
||
27 | * @param CustomerChangedEvent $event The raised event. |
||
28 | */ |
||
29 | abstract public function onCustomerChanged(CustomerChangedEvent $event); |
||
30 | |||
31 | /** |
||
32 | * Handle deleting a customer. |
||
33 | * |
||
34 | * @param CustomerDeletedEvent $event The raised event. |
||
35 | */ |
||
36 | abstract public function onCustomerDeleted(CustomerDeletedEvent $event); |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public static function getSubscribedEvents() |
||
49 | } |
||
50 |