Total Complexity | 5 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
6 | class TestObject |
||
7 | { |
||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | private $test; |
||
12 | /** |
||
13 | * @var bool |
||
14 | */ |
||
15 | private $testBool; |
||
16 | |||
17 | public function __construct(string $test, bool $testBool = false) |
||
18 | { |
||
19 | $this->test = $test; |
||
20 | $this->testBool = $testBool; |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @return string |
||
25 | */ |
||
26 | public function getTest(): string |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @return bool |
||
33 | */ |
||
34 | public function isTestBool(): bool |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @return ?string |
||
41 | */ |
||
42 | public function testRight() |
||
45 | } |
||
46 | |||
47 | public function getSibling(self $foo): self |
||
52 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.