| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | abstract class DonorEvent extends InfoEvent |
||
| 29 | { |
||
| 30 | /** @var Donor */ |
||
| 31 | private $donor; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param array<string> $context |
||
| 35 | */ |
||
| 36 | public function __construct(string $message, Donor $donor, array $context = []) |
||
| 37 | { |
||
| 38 | $context['mandate_key'] = $donor->getMandateKey(); |
||
| 39 | |||
| 40 | parent::__construct($message, $context); |
||
| 41 | |||
| 42 | $this->donor = $donor; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getDonor(): Donor |
||
| 48 | } |
||
| 49 | } |
||
| 50 |