Total Complexity | 8 |
Total Lines | 80 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class AbstractElementSingle extends Item implements ElementSingle |
||
8 | { |
||
9 | /** |
||
10 | * @var int |
||
11 | */ |
||
12 | protected $min = 1; |
||
13 | |||
14 | /** |
||
15 | * @var int |
||
16 | */ |
||
17 | protected $max = 1; |
||
18 | |||
19 | /** |
||
20 | * @var bool |
||
21 | */ |
||
22 | protected $qualified = true; |
||
23 | |||
24 | /** |
||
25 | * @var bool |
||
26 | */ |
||
27 | protected $nil = false; |
||
28 | |||
29 | public function isQualified() : bool |
||
30 | { |
||
31 | return $this->qualified; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function setQualified(bool $qualified) : ElementSingle |
||
38 | { |
||
39 | $this->qualified = $qualified; |
||
40 | |||
41 | return $this; |
||
42 | } |
||
43 | |||
44 | public function isNil() : bool |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function setNil(bool $nil) : ElementSingle |
||
57 | } |
||
58 | |||
59 | public function getMin() : int |
||
60 | { |
||
61 | return $this->min; |
||
62 | } |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function setMin(int $min) : ElementSingle |
||
72 | } |
||
73 | |||
74 | public function getMax() : int |
||
75 | { |
||
76 | return $this->max; |
||
77 | } |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function setMax(int $max) : ElementSingle |
||
87 | } |
||
88 | } |
||
89 |