|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
namespace GoetasWebservices\XML\XSDReader\Schema\Element; |
|
6
|
|
|
|
|
7
|
|
|
use GoetasWebservices\XML\XSDReader\Schema\Item; |
|
8
|
|
|
|
|
9
|
|
|
class AbstractElementSingle extends Item implements ElementSingle, InterfaceSetAbstract |
|
10
|
|
|
{ |
|
11
|
|
|
protected int $min = 1; |
|
12
|
|
|
|
|
13
|
|
|
protected int $max = 1; |
|
14
|
|
|
|
|
15
|
|
|
protected bool $qualified = false; |
|
16
|
|
|
|
|
17
|
|
|
protected bool $local = false; |
|
18
|
|
|
|
|
19
|
|
|
protected bool $nil = false; |
|
20
|
|
|
|
|
21
|
|
|
protected ?string $fixed = null; |
|
22
|
|
|
|
|
23
|
|
|
protected ?string $default = null; |
|
24
|
|
|
|
|
25
|
|
|
protected bool $abstract = false; |
|
26
|
|
|
|
|
27
|
|
|
public function isQualified(): bool |
|
28
|
|
|
{ |
|
29
|
|
|
return $this->qualified; |
|
30
|
|
|
} |
|
31
|
|
|
|
|
32
|
|
|
public function setQualified(bool $qualified): void |
|
33
|
|
|
{ |
|
34
|
|
|
$this->qualified = $qualified; |
|
35
|
|
|
} |
|
36
|
|
|
|
|
37
|
|
|
public function isLocal(): bool |
|
38
|
|
|
{ |
|
39
|
|
|
return $this->local; |
|
40
|
|
|
} |
|
41
|
2 |
|
|
|
42
|
|
|
public function setLocal(bool $local): void |
|
43
|
2 |
|
{ |
|
44
|
|
|
$this->local = $local; |
|
45
|
|
|
} |
|
46
|
5 |
|
|
|
47
|
|
|
public function isNil(): bool |
|
48
|
5 |
|
{ |
|
49
|
5 |
|
return $this->nil; |
|
50
|
|
|
} |
|
51
|
1 |
|
|
|
52
|
|
|
public function setNil(bool $nil): void |
|
53
|
1 |
|
{ |
|
54
|
|
|
$this->nil = $nil; |
|
55
|
|
|
} |
|
56
|
74 |
|
|
|
57
|
|
|
public function getMin(): int |
|
58
|
74 |
|
{ |
|
59
|
74 |
|
return $this->min; |
|
60
|
|
|
} |
|
61
|
1 |
|
|
|
62
|
|
|
public function setMin(int $min): void |
|
63
|
1 |
|
{ |
|
64
|
|
|
$this->min = $min; |
|
65
|
|
|
} |
|
66
|
4 |
|
|
|
67
|
|
|
public function getMax(): int |
|
68
|
4 |
|
{ |
|
69
|
4 |
|
return $this->max; |
|
70
|
|
|
} |
|
71
|
74 |
|
|
|
72
|
|
|
public function setMax(int $max): void |
|
73
|
74 |
|
{ |
|
74
|
|
|
$this->max = $max; |
|
75
|
|
|
} |
|
76
|
74 |
|
|
|
77
|
|
|
public function getFixed(): ?string |
|
78
|
74 |
|
{ |
|
79
|
74 |
|
return $this->fixed; |
|
80
|
|
|
} |
|
81
|
74 |
|
|
|
82
|
|
|
public function setFixed(string $fixed): void |
|
83
|
74 |
|
{ |
|
84
|
|
|
$this->fixed = $fixed; |
|
85
|
|
|
} |
|
86
|
74 |
|
|
|
87
|
|
|
public function getDefault(): ?string |
|
88
|
74 |
|
{ |
|
89
|
74 |
|
return $this->default; |
|
90
|
|
|
} |
|
91
|
1 |
|
|
|
92
|
|
|
public function setDefault(string $default): void |
|
93
|
1 |
|
{ |
|
94
|
|
|
$this->default = $default; |
|
95
|
|
|
} |
|
96
|
1 |
|
|
|
97
|
|
|
public function isAbstract(): bool |
|
98
|
1 |
|
{ |
|
99
|
1 |
|
return $this->abstract; |
|
100
|
|
|
} |
|
101
|
|
|
|
|
102
|
|
|
public function setAbstract(bool $abstract): void |
|
103
|
|
|
{ |
|
104
|
|
|
$this->abstract = $abstract; |
|
105
|
|
|
} |
|
106
|
|
|
} |
|
107
|
|
|
|