Total Complexity | 2 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 90.91% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class ColorBlockMaker |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | protected string $extension; |
||
12 | |||
13 | /** |
||
14 | * @var float |
||
15 | */ |
||
16 | protected float $with; |
||
17 | |||
18 | /** |
||
19 | * @var float |
||
20 | */ |
||
21 | protected float $height; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected string $color; |
||
27 | |||
28 | /** |
||
29 | * @param string $extension |
||
30 | * @param float $with |
||
31 | * @param float $height |
||
32 | * @param string $color |
||
33 | */ |
||
34 | 2 | public function __construct(string $extension, float $with = 100, float $height = 100, string $color = '#808080') |
|
35 | { |
||
36 | 2 | $this->extension = $extension; |
|
37 | 2 | $this->with = $with; |
|
38 | 2 | $this->height = $height; |
|
39 | 2 | $this->color = $color; |
|
40 | } |
||
41 | |||
42 | 2 | public function image() |
|
51 | } |
||
52 | } |
||
53 |