Total Complexity | 4 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | class Example |
||
11 | { |
||
12 | const CLASS_CONSTANT = 5; |
||
13 | |||
14 | public $property; |
||
15 | |||
16 | 3 | public function __construct($value = 0) |
|
19 | } |
||
20 | |||
21 | 1 | public function factorial($number) |
|
22 | { |
||
23 | 1 | if ($number <= 1) { |
|
24 | 1 | return 1; |
|
25 | } |
||
26 | |||
27 | 1 | return $number * $this->factorial($number - 1); |
|
28 | } |
||
29 | |||
30 | 1 | public function stringLength() |
|
33 | } |
||
34 | } |
||
35 |