| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 6 | public function retrieve(AggregateRootId $aggregateRootId): AggregateRoot |
|
| 32 | { |
||
| 33 | /** @var AggregateRoot $className */ |
||
| 34 | 6 | $className = $this->aggregateRootClassName; |
|
| 35 | 6 | $events = $this->retrieveAllEvents($aggregateRootId); |
|
| 36 | |||
| 37 | 6 | return $className::reconstituteFromEvents($aggregateRootId, $events); |
|
| 38 | } |
||
| 39 | |||
| 61 | } |