| Total Complexity | 2 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | final class DonorAmountUpdated extends DonorEvent |
||
| 30 | { |
||
| 31 | /** @var Money */ |
||
| 32 | private $newAmount; |
||
| 33 | |||
| 34 | public function __construct(Donor $donor, Money $newAmount) |
||
| 35 | { |
||
| 36 | parent::__construct("Changed amount on mandate '{$donor->getMandateKey()}'", $donor); |
||
| 37 | $this->newAmount = $newAmount; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getNewAmount(): Money |
||
| 43 | } |
||
| 44 | } |
||
| 45 |