| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | final class DonorAttributeRemoved extends DonorEvent |
||
| 28 | { |
||
| 29 | /** @var string */ |
||
| 30 | private $key; |
||
| 31 | |||
| 32 | public function __construct(Donor $donor, string $key) |
||
| 33 | { |
||
| 34 | parent::__construct( |
||
| 35 | sprintf( |
||
| 36 | "Removed attribute '%s' on mandate '%s'", |
||
| 37 | $key, |
||
| 38 | $donor->getMandateKey() |
||
| 39 | ), |
||
| 40 | $donor |
||
| 41 | ); |
||
| 42 | |||
| 43 | $this->key = $key; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getAttributeKey(): string |
||
| 49 | } |
||
| 50 | } |
||
| 51 |