Total Complexity | 10 |
Total Lines | 75 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | abstract class AbstractAttributeItem extends Item implements AttributeSingle |
||
10 | { |
||
11 | /** |
||
12 | * @var string|null |
||
13 | */ |
||
14 | protected $fixed; |
||
15 | |||
16 | /** |
||
17 | * @var string|null |
||
18 | */ |
||
19 | protected $default; |
||
20 | |||
21 | /** |
||
22 | * @var bool |
||
23 | */ |
||
24 | protected $qualified = true; |
||
25 | |||
26 | /** |
||
27 | * @var bool |
||
28 | */ |
||
29 | protected $nil = false; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $use = self::USE_OPTIONAL; |
||
35 | |||
36 | public function getFixed(): ?string |
||
37 | { |
||
38 | return $this->fixed; |
||
39 | } |
||
40 | |||
41 | public function setFixed(string $fixed): void |
||
42 | { |
||
43 | $this->fixed = $fixed; |
||
44 | } |
||
45 | |||
46 | public function getDefault(): ?string |
||
47 | { |
||
48 | return $this->default; |
||
49 | } |
||
50 | |||
51 | public function setDefault(string $default): void |
||
52 | { |
||
53 | $this->default = $default; |
||
54 | } |
||
55 | |||
56 | public function isQualified(): bool |
||
57 | { |
||
58 | return $this->qualified; |
||
59 | } |
||
60 | |||
61 | public function setQualified(bool $qualified): void |
||
62 | { |
||
63 | $this->qualified = $qualified; |
||
64 | } |
||
65 | |||
66 | public function isNil(): bool |
||
67 | { |
||
68 | return $this->nil; |
||
69 | } |
||
70 | |||
71 | public function setNil(bool $nil): void |
||
74 | } |
||
75 | |||
76 | public function getUse(): string |
||
77 | { |
||
79 | } |
||
80 | |||
81 | public function setUse(string $use): void |
||
82 | { |
||
83 | $this->use = $use; |
||
86 |