Total Complexity | 7 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 52.63% |
Changes | 0 |
1 | <?php |
||
5 | class ConditionalFormatValueObject |
||
6 | { |
||
7 | private string $type; |
||
8 | |||
9 | private null|float|int|string $value; |
||
10 | |||
11 | private ?string $cellFormula; |
||
12 | |||
13 | 9 | public function __construct(string $type, null|float|int|string $value = null, ?string $cellFormula = null) |
|
14 | { |
||
15 | 9 | $this->type = $type; |
|
16 | 9 | $this->value = $value; |
|
17 | 9 | $this->cellFormula = $cellFormula; |
|
18 | } |
||
19 | |||
20 | 8 | public function getType(): string |
|
21 | { |
||
22 | 8 | return $this->type; |
|
23 | } |
||
24 | |||
25 | public function setType(string $type): self |
||
26 | { |
||
27 | $this->type = $type; |
||
28 | |||
29 | return $this; |
||
30 | } |
||
31 | |||
32 | 8 | public function getValue(): null|float|int|string |
|
33 | { |
||
34 | 8 | return $this->value; |
|
35 | } |
||
36 | |||
37 | public function setValue(null|float|int|string $value): self |
||
38 | { |
||
39 | $this->value = $value; |
||
40 | |||
41 | return $this; |
||
42 | } |
||
43 | |||
44 | 5 | public function getCellFormula(): ?string |
|
47 | } |
||
48 | |||
49 | public function setCellFormula(?string $cellFormula): self |
||
54 | } |
||
55 | } |
||
56 |