| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class PaymentEvent |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Repository |
||
| 12 | */ |
||
| 13 | private $config; |
||
| 14 | /** |
||
| 15 | * @var bool |
||
| 16 | */ |
||
| 17 | private $enabled = true; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Event constructor. |
||
| 21 | * |
||
| 22 | * @param Repository $config |
||
| 23 | */ |
||
| 24 | public function __construct(Repository $config) |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Fires event with given Payment instance. |
||
| 32 | * |
||
| 33 | * @param string $name |
||
| 34 | * @param Payment $payment |
||
| 35 | */ |
||
| 36 | public function execute(string $name, Payment $payment): void |
||
| 45 |