Total Complexity | 6 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class DummyAggregate implements AggregateRoot |
||
11 | { |
||
12 | use AggregateRootBehaviour; |
||
13 | |||
14 | private $incrementedNumber = 0; |
||
15 | |||
16 | public function performDummyTask() |
||
17 | { |
||
18 | $this->recordThat(new DummyTaskWasExecuted()); |
||
19 | } |
||
20 | |||
21 | public function increment() |
||
22 | { |
||
23 | $this->recordThat(new DummyIncrementingHappened( |
||
24 | $this->incrementedNumber + 1 |
||
25 | )); |
||
26 | } |
||
27 | |||
28 | protected function applyDummyIncrementingHappened(DummyIncrementingHappened $event) |
||
29 | { |
||
30 | $this->incrementedNumber = $event->number(); |
||
31 | } |
||
32 | |||
33 | protected function applyDummyTaskWasExecuted(DummyTaskWasExecuted $event) |
||
|
|||
34 | { |
||
35 | } |
||
36 | |||
37 | public function dontDoAnything() |
||
39 | // not doing anything. |
||
40 | } |
||
41 | |||
42 | 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.