1 | <?php |
||
10 | class PaymentEvent |
||
11 | { |
||
12 | /** |
||
13 | * @var Repository |
||
14 | */ |
||
15 | private $config; |
||
16 | |||
17 | /** |
||
18 | * Event constructor. |
||
19 | * |
||
20 | * @param Repository $config |
||
21 | */ |
||
22 | public function __construct(Repository $config) |
||
26 | |||
27 | /** |
||
28 | * Fires event with given Payment instance. |
||
29 | * |
||
30 | * @param string $name |
||
31 | * @param Payment $payment |
||
32 | */ |
||
33 | public function execute(string $name, Payment $payment): void |
||
39 | } |
||
40 |