| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | final class DonorEmailUpdated extends DonorEvent |
||
| 29 | { |
||
| 30 | /** |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | private $newEmail; |
||
| 34 | |||
| 35 | public function __construct(Donor $donor, string $newEmail) |
||
| 36 | { |
||
| 37 | parent::__construct( |
||
| 38 | sprintf( |
||
| 39 | "Changed mail on mandate '%s' to '%s'", |
||
| 40 | $donor->getMandateKey(), |
||
| 41 | $newEmail |
||
| 42 | ), |
||
| 43 | $donor |
||
| 44 | ); |
||
| 45 | |||
| 46 | $this->newEmail = $newEmail; |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getNewEmail(): string |
||
| 52 | } |
||
| 53 | } |
||
| 54 |