Total Complexity | 6 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | abstract class AbstractTypeField extends AbstractField |
||
10 | { |
||
11 | private $type; |
||
12 | private $value; |
||
13 | |||
14 | 40 | public function __construct(string $name, string $value, ?string $type, ?string $comment) |
|
20 | 26 | } |
|
21 | |||
22 | 6 | public function getValue(): string |
|
23 | { |
||
24 | 6 | return $this->value; |
|
25 | } |
||
26 | |||
27 | 40 | public function setValue(string $value): void |
|
28 | { |
||
29 | 40 | $this->value = $value; |
|
30 | 40 | } |
|
31 | |||
32 | 20 | public function getType(): string |
|
35 | } |
||
36 | |||
37 | 40 | public function setType(?string $type): void |
|
44 | 26 | } |
|
45 | |||
46 | abstract protected function getTypes(): array; |
||
47 | } |
||
48 |