| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types=1); |
||
| 15 | final class ConcurrencyRaceLost extends RuntimeException |
||
| 16 | { |
||
| 17 | private AggregateIdInterface $aggregateId; |
||
| 18 | |||
| 19 | private DomainEventSequenceInterface $lostEvents; |
||
| 20 | |||
| 21 | public function __construct(AggregateIdInterface $aggregateId, DomainEventSequenceInterface $lostEvents) |
||
| 22 | { |
||
| 23 | $this->aggregateId = $aggregateId; |
||
| 24 | $this->lostEvents = $lostEvents; |
||
| 25 | parent::__construct('Unable to catchup on stream '.$this->aggregateId); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getAggregateId(): AggregateIdInterface |
||
| 29 | { |
||
| 30 | return $this->aggregateId; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getLostEvents(): DomainEventSequenceInterface |
||
| 36 | } |
||
| 37 | } |
||
| 38 |