| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | class DonorPayerNumberUpdated extends DonorEvent |
||
| 29 | { |
||
| 30 | /** @var string */ |
||
| 31 | private $newPayerNumber; |
||
| 32 | |||
| 33 | /** @var string */ |
||
| 34 | private $desc; |
||
| 35 | |||
| 36 | public function __construct(Donor $donor, string $newPayerNumber, string $desc) |
||
| 37 | { |
||
| 38 | parent::__construct( |
||
| 39 | sprintf( |
||
| 40 | "Changed payer number on mandate '%s' to '%s'", |
||
| 41 | $donor->getMandateKey(), |
||
| 42 | $newPayerNumber |
||
| 43 | ), |
||
| 44 | $donor |
||
| 45 | ); |
||
| 46 | |||
| 47 | $this->newPayerNumber = $newPayerNumber; |
||
| 48 | $this->desc = $desc; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getNewPayerNumber(): string |
||
| 52 | { |
||
| 53 | return $this->newPayerNumber; |
||
| 54 | } |
||
| 55 | |||
| 56 | public function getUpdateDescription(): string |
||
| 59 | } |
||
| 60 | } |
||
| 61 |