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