| Total Complexity | 8 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 7 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait AggregateRootBehaviour |
||
| 13 | { |
||
| 14 | use AggregateAlwaysAppliesEvents; |
||
| 15 | |||
| 16 | private AggregateRootId $aggregateRootId; |
||
| 17 | private int $aggregateRootVersion = 0; |
||
| 18 | /** @var list<object> */ |
||
|
|
|||
| 19 | private array $recordedEvents = []; |
||
| 20 | |||
| 21 | private function __construct(AggregateRootId $aggregateRootId) |
||
| 22 | { |
||
| 23 | $this->aggregateRootId = $aggregateRootId; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function aggregateRootId(): AggregateRootId |
||
| 27 | { |
||
| 28 | return $this->aggregateRootId; |
||
| 29 | 17 | } |
|
| 30 | |||
| 31 | 17 | /** |
|
| 32 | 17 | * @see AggregateRoot::aggregateRootVersion |
|
| 33 | */ |
||
| 34 | 14 | public function aggregateRootVersion(): int |
|
| 37 | } |
||
| 38 | |||
| 39 | protected function recordThat(object $event): void |
||
| 40 | { |
||
| 41 | $this->apply($event); |
||
| 42 | 16 | $this->recordedEvents[] = $event; |
|
| 43 | } |
||
| 44 | 16 | ||
| 45 | /** |
||
| 46 | * @return object[] |
||
| 47 | 11 | */ |
|
| 48 | public function releaseEvents(): array |
||
| 54 | 9 | } |
|
| 55 | |||
| 56 | 9 | /** |
|
| 57 | 9 | * @see AggregateRoot::reconstituteFromEvents |
|
| 58 | 9 | */ |
|
| 59 | public static function reconstituteFromEvents(AggregateRootId $aggregateRootId, Generator $events): static |
||
| 71 | } |
||
| 72 | } |
||
| 73 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths