Completed
Push — master ( e61848...5235c9 )
by Asmir
14s queued 10s
created

AbstractElementSingle::isLocal()   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 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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 $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
62
    {
63 1
        return $this->nil;
64
    }
65
66 4
    public function setNil(bool $nil): void
67
    {
68 4
        $this->nil = $nil;
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
92
    {
93 1
        return $this->default;
94
    }
95
96 1
    public function setDefault(string $default): void
97
    {
98 1
        $this->default = $default;
99 1
    }
100
}
101