Total Complexity | 14 |
Total Lines | 105 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class AbstractElementSingle extends Item implements ElementSingle |
||
10 | { |
||
11 | /** |
||
12 | * @var int |
||
13 | */ |
||
14 | protected $min = 1; |
||
15 | |||
16 | /** |
||
17 | * @var int |
||
18 | */ |
||
19 | protected $max = 1; |
||
20 | |||
21 | /** |
||
22 | * @var bool |
||
23 | */ |
||
24 | protected $qualified = false; |
||
25 | |||
26 | /** |
||
27 | * @var bool |
||
28 | */ |
||
29 | protected $local = false; |
||
30 | |||
31 | /** |
||
32 | * @var bool |
||
33 | */ |
||
34 | protected $nil = false; |
||
35 | |||
36 | /** |
||
37 | * @var string|null |
||
38 | */ |
||
39 | protected $fixed; |
||
40 | |||
41 | 2 | /** |
|
42 | * @var string|null |
||
43 | 2 | */ |
|
44 | protected $default = null; |
||
45 | |||
46 | 5 | public function isQualified(): bool |
|
47 | { |
||
48 | 5 | return $this->qualified; |
|
49 | 5 | } |
|
50 | |||
51 | 1 | public function setQualified(bool $qualified): void |
|
52 | { |
||
53 | 1 | $this->qualified = $qualified; |
|
54 | } |
||
55 | |||
56 | 74 | public function isLocal(): bool |
|
57 | { |
||
58 | 74 | return $this->local; |
|
59 | 74 | } |
|
60 | |||
61 | 1 | public function setLocal(bool $local): void |
|
62 | { |
||
63 | 1 | $this->local = $local; |
|
64 | } |
||
65 | |||
66 | 4 | public function isNil(): bool |
|
69 | 4 | } |
|
70 | |||
71 | 74 | public function setNil(bool $nil): void |
|
72 | { |
||
73 | 74 | $this->nil = $nil; |
|
74 | } |
||
75 | |||
76 | 74 | public function getMin(): int |
|
77 | { |
||
78 | 74 | return $this->min; |
|
79 | 74 | } |
|
80 | |||
81 | 74 | public function setMin(int $min): void |
|
82 | { |
||
83 | 74 | $this->min = $min; |
|
84 | } |
||
85 | |||
86 | 74 | public function getMax(): int |
|
87 | { |
||
88 | 74 | return $this->max; |
|
89 | 74 | } |
|
90 | |||
91 | 1 | public function setMax(int $max): void |
|
92 | { |
||
93 | 1 | $this->max = $max; |
|
94 | } |
||
95 | |||
96 | 1 | public function getFixed(): ?string |
|
99 | 1 | } |
|
100 | |||
101 | public function setFixed(string $fixed): void |
||
102 | { |
||
103 | $this->fixed = $fixed; |
||
104 | } |
||
105 | |||
106 | public function getDefault(): ?string |
||
109 | } |
||
110 | |||
111 | public function setDefault(string $default): void |
||
112 | { |
||
114 | } |
||
115 | } |
||
116 |