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