| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 5 | abstract class RefusalEvent implements DomainEvent |
||
| 6 | { |
||
| 7 | private $correlationId; |
||
| 8 | private $reason; |
||
| 9 | |||
| 10 | public function __construct(CorrelationId $correlationId, string $reason) |
||
| 14 | } |
||
| 15 | |||
| 16 | public function aggregateId(): CorrelationId |
||
| 17 | { |
||
| 18 | return $this->correlationId; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function reason(): string |
||
| 24 | } |
||
| 25 | } |
||
| 26 |