| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 14 | trait AnnotatesDomainEvent |
||
| 15 | { |
||
| 16 | use AnnotatesForAggregate; |
||
| 17 | |||
| 18 | 2 | public function getAggregateRevision(): AggregateRevision |
|
| 19 | { |
||
| 20 | 2 | return $this->{static::getAnnotatedRevision()}; |
|
| 21 | } |
||
| 22 | |||
| 23 | /** @return static */ |
||
| 24 | 1 | public function withAggregateRevision(AggregateRevision $aggregateRevision): self |
|
| 29 | } |
||
| 30 | } |
||
| 31 |