Total Complexity | 7 |
Total Lines | 39 |
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 | 8 | private function __construct() |
|
17 | { |
||
18 | 8 | } |
|
19 | |||
20 | 1 | public function performDummyTask() |
|
21 | { |
||
22 | 1 | $this->recordThat(new DummyTaskWasExecuted()); |
|
23 | 1 | } |
|
24 | |||
25 | 3 | public function increment() |
|
26 | { |
||
27 | 3 | $this->recordThat(new DummyIncrementingHappened( |
|
28 | 3 | $this->incrementedNumber + 1 |
|
29 | )); |
||
30 | 3 | } |
|
31 | |||
32 | 3 | protected function applyDummyIncrementingHappened(DummyIncrementingHappened $event) |
|
33 | { |
||
34 | 3 | $this->incrementedNumber = $event->number(); |
|
35 | 3 | } |
|
36 | |||
37 | 1 | protected function applyDummyTaskWasExecuted(DummyTaskWasExecuted $event) |
|
|
|||
38 | { |
||
39 | 1 | } |
|
40 | |||
41 | 1 | public function dontDoAnything() |
|
43 | // not doing anything. |
||
44 | 1 | } |
|
45 | |||
46 | 3 | public function throwAnException() |
|
49 | } |
||
50 | } |
||
51 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.