| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| 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 | 1 | protected function applyDelegatedAggregateWasChosen(DelegatedAggregateWasChosen $event) |
|
|
|
|||
| 20 | { |
||
| 21 | 1 | $this->delegatedAggregate = new DelegatedBehaviorInAggregate($this->eventRecorder()); |
|
| 22 | 1 | $this->registerAggregate($this->delegatedAggregate); |
|
| 23 | 1 | } |
|
| 24 | |||
| 25 | 1 | protected function applyDelegatedAggregateWasDiscarded(DelegatedAggregateWasDiscarded $event) |
|
| 28 | 1 | } |
|
| 29 | |||
| 30 | 1 | 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.