1 | <?php |
||
15 | abstract class AbstractPaymentListener implements EventSubscriberInterface |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * Handle creating a payment. |
||
20 | * |
||
21 | * @param PaymentCreatedEvent $event The raised event. |
||
22 | */ |
||
23 | abstract public function onPaymentCreated(PaymentCreatedEvent $event); |
||
24 | |||
25 | /** |
||
26 | * Handle payment chargeback. |
||
27 | * |
||
28 | * @param PaymentChargebackEvent $event The raised event. |
||
29 | */ |
||
30 | abstract public function onPaymentChargeback(PaymentChargebackEvent $event); |
||
31 | |||
32 | /** |
||
33 | * Handle failed payment. |
||
34 | * |
||
35 | * @param PaymentFailedEvent $event The raised event. |
||
36 | */ |
||
37 | abstract public function onPaymentFailed(PaymentFailedEvent $event); |
||
38 | |||
39 | /** |
||
40 | * Handle refunded payment. |
||
41 | * |
||
42 | * @param PaymentRefundedEvent $event The raised event. |
||
43 | */ |
||
44 | abstract public function onPaymentRefundedEvent(PaymentRefundedEvent $event); |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public static function getSubscribedEvents() |
||
58 | } |
||
59 |