Completed
Push — master ( 408208...60b26b )
by Asmir
22s queued 13s
created

AbstractElementSingle   A

Complexity

Total Complexity 14

Size/Duplication

Total Lines 105
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 14
eloc 22
c 1
b 0
f 0
dl 0
loc 105
ccs 30
cts 30
cp 1
rs 10

14 Methods

Rating   Name   Duplication   Size   Complexity  
A isNil() 0 3 1
A isLocal() 0 3 1
A getFixed() 0 3 1
A isQualified() 0 3 1
A setLocal() 0 3 1
A setNil() 0 3 1
A getDefault() 0 3 1
A setFixed() 0 3 1
A setQualified() 0 3 1
A setMin() 0 3 1
A setDefault() 0 3 1
A setMax() 0 3 1
A getMax() 0 3 1
A getMin() 0 3 1
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
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
67
    {
68 4
        return $this->nil;
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
97
    {
98 1
        return $this->fixed;
99 1
    }
100
101
    public function setFixed(string $fixed): void
102
    {
103
        $this->fixed = $fixed;
104
    }
105
106
    public function getDefault(): ?string
107
    {
108
        return $this->default;
109
    }
110
111
    public function setDefault(string $default): void
112
    {
113
        $this->default = $default;
114
    }
115
}
116