Total Complexity | 10 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Coverage | 90% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | final class PureInputData implements InputDataInterface |
||
10 | { |
||
11 | 116 | public function __construct( |
|
12 | private ?string $name = null, |
||
13 | private mixed $value = null, |
||
14 | ) { |
||
15 | 116 | } |
|
16 | |||
17 | public function getValidationRules(): array |
||
18 | { |
||
19 | return []; |
||
20 | } |
||
21 | |||
22 | 1 | public function getName(): ?string |
|
23 | { |
||
24 | 1 | return $this->name; |
|
25 | } |
||
26 | |||
27 | 1 | public function getValue(): mixed |
|
30 | } |
||
31 | |||
32 | 107 | public function getLabel(): ?string |
|
33 | { |
||
34 | 107 | return null; |
|
35 | } |
||
36 | |||
37 | 107 | public function getHint(): ?string |
|
38 | { |
||
39 | 107 | return null; |
|
40 | } |
||
41 | |||
42 | 1 | public function getPlaceholder(): ?string |
|
43 | { |
||
44 | 1 | return null; |
|
45 | } |
||
46 | |||
47 | 7 | public function getId(): ?string |
|
48 | { |
||
49 | 7 | return null; |
|
50 | } |
||
51 | |||
52 | 1 | public function isValidated(): bool |
|
55 | } |
||
56 | |||
57 | 107 | public function getValidationErrors(): array |
|
58 | { |
||
59 | 107 | return []; |
|
60 | } |
||
61 | } |
||
62 |