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

AbstractElementSingle::setNil()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 1
crap 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