Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
10 | class ComplexAggregateRoot implements AggregateRoot |
||
11 | { |
||
12 | use AggregateRootWithAggregates; |
||
13 | |||
14 | private DelegatedBehaviorInAggregate $delegatedAggregate; |
||
15 | |||
16 | protected function applyDelegatedAggregateWasChosen(DelegatedAggregateWasChosen $event): void |
||
|
|||
17 | { |
||
18 | $this->delegatedAggregate = new DelegatedBehaviorInAggregate($this->eventRecorder()); |
||
19 | $this->registerAggregate($this->delegatedAggregate); |
||
20 | } |
||
21 | |||
22 | protected function applyDelegatedAggregateWasDiscarded(DelegatedAggregateWasDiscarded $event): void |
||
25 | } |
||
26 | |||
27 | public function causeDelegatedAction(): void |
||
33 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.