| Total Complexity | 12 |
| Total Lines | 90 |
| 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 $default = null; |
||
| 40 | |||
| 41 | 2 | public function isQualified(): bool |
|
| 42 | { |
||
| 43 | 2 | return $this->qualified; |
|
| 44 | } |
||
| 45 | |||
| 46 | 5 | public function setQualified(bool $qualified): void |
|
| 47 | { |
||
| 48 | 5 | $this->qualified = $qualified; |
|
| 49 | 5 | } |
|
| 50 | |||
| 51 | 1 | public function isLocal(): bool |
|
| 52 | { |
||
| 53 | 1 | return $this->local; |
|
| 54 | } |
||
| 55 | |||
| 56 | 67 | public function setLocal(bool $local): void |
|
| 57 | { |
||
| 58 | 67 | $this->local = $local; |
|
| 59 | 67 | } |
|
| 60 | |||
| 61 | 1 | public function isNil(): bool |
|
| 64 | } |
||
| 65 | |||
| 66 | 4 | public function setNil(bool $nil): void |
|
| 67 | { |
||
| 69 | 4 | } |
|
| 70 | |||
| 71 | 67 | public function getMin(): int |
|
| 72 | { |
||
| 73 | 67 | return $this->min; |
|
| 74 | } |
||
| 75 | |||
| 76 | 67 | public function setMin(int $min): void |
|
| 77 | { |
||
| 78 | 67 | $this->min = $min; |
|
| 79 | 67 | } |
|
| 80 | |||
| 81 | 67 | public function getMax(): int |
|
| 82 | { |
||
| 83 | 67 | return $this->max; |
|
| 84 | } |
||
| 85 | |||
| 86 | 67 | public function setMax(int $max): void |
|
| 87 | { |
||
| 88 | 67 | $this->max = $max; |
|
| 89 | 67 | } |
|
| 90 | |||
| 91 | 1 | public function getDefault(): ?string |
|
| 94 | } |
||
| 95 | |||
| 96 | 1 | public function setDefault(string $default): void |
|
| 99 | 1 | } |
|
| 100 | } |
||
| 101 |