Total Complexity | 7 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class FizzBuzz |
||
6 | { |
||
7 | /** |
||
8 | * Create a new instance class. |
||
9 | * |
||
10 | * @return void |
||
11 | */ |
||
12 | 1 | public function __construct( |
|
18 | // |
||
19 | 1 | } |
|
20 | |||
21 | /** |
||
22 | * Create a new instance class in a static way. |
||
23 | * |
||
24 | * @return static |
||
25 | */ |
||
26 | 1 | public static function make(int $start, int $end, int $fizz = 3, int $buzz = 5) |
|
27 | { |
||
28 | 1 | return new static($start, $end, $fizz, $buzz); |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * Generate list of fizz buzz data. |
||
33 | * |
||
34 | * @return int[]|string[] |
||
35 | */ |
||
36 | 1 | public function generate(): array |
|
53 | } |
||
54 | } |
||
55 |