Total Complexity | 6 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
6 | class Foo |
||
7 | { |
||
8 | private $someProperty = 42; |
||
9 | protected $inheritProtected = 'whatever'; |
||
10 | |||
11 | 4 | public function someProperty(int $newValue = null) |
|
12 | { |
||
13 | 4 | if (is_int($newValue)) { |
|
14 | 1 | $this->someProperty = $newValue; |
|
15 | |||
16 | 1 | return $this; |
|
17 | } |
||
18 | |||
19 | 4 | return $this->someProperty; |
|
20 | } |
||
21 | |||
22 | 1 | public function getSomeProperty() |
|
23 | { |
||
24 | 1 | return $this->someProperty; |
|
25 | } |
||
26 | |||
27 | 1 | public function hasSomeProperty() |
|
28 | { |
||
29 | 1 | return true; |
|
30 | } |
||
31 | |||
32 | 1 | public function isSomeProperty() |
|
35 | } |
||
36 | |||
37 | 1 | public function setSomeProperty($value) |
|
38 | { |
||
44 |