Total Complexity | 6 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class DummyAggregate implements AggregateRoot |
||
11 | { |
||
12 | use AggregateRootBehaviour; |
||
13 | |||
14 | private $incrementedNumber = 0; |
||
15 | |||
16 | 1 | public function performDummyTask() |
|
17 | { |
||
18 | 1 | $this->recordThat(new DummyTaskWasExecuted()); |
|
19 | 1 | } |
|
20 | |||
21 | 3 | public function increment() |
|
22 | { |
||
23 | 3 | $this->recordThat(new DummyIncrementingHappened( |
|
24 | 3 | $this->incrementedNumber + 1 |
|
25 | )); |
||
26 | 3 | } |
|
27 | |||
28 | 3 | protected function applyDummyIncrementingHappened(DummyIncrementingHappened $event) |
|
29 | { |
||
30 | 3 | $this->incrementedNumber = $event->number(); |
|
31 | 3 | } |
|
32 | |||
33 | 1 | protected function applyDummyTaskWasExecuted(DummyTaskWasExecuted $event) |
|
|
|||
34 | { |
||
35 | 1 | } |
|
36 | |||
37 | 1 | public function dontDoAnything() |
|
39 | // not doing anything. |
||
40 | 1 | } |
|
41 | |||
42 | 3 | public function throwAnException() |
|
45 | } |
||
46 | } |
||
47 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.