AbstractAttributeItem::getUse()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 0
cp 0
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GoetasWebservices\XML\XSDReader\Schema\Attribute;
6
7
use GoetasWebservices\XML\XSDReader\Schema\Item;
8
9
abstract class AbstractAttributeItem extends Item implements AttributeSingle
10
{
11
    /**
12
     * @var string|null
13
     */
14
    protected $fixed;
15
16
    /**
17
     * @var string|null
18
     */
19
    protected $default;
20
21
    /**
22
     * @var bool
23
     */
24
    protected $qualified = true;
25
26
    /**
27
     * @var bool
28
     */
29
    protected $nil = false;
30
31
    /**
32
     * @var string
33
     */
34
    protected $use = self::USE_OPTIONAL;
35
36
    public function getFixed(): ?string
37
    {
38
        return $this->fixed;
39
    }
40
41
    public function setFixed(string $fixed): void
42
    {
43
        $this->fixed = $fixed;
44
    }
45
46
    public function getDefault(): ?string
47
    {
48
        return $this->default;
49
    }
50
51
    public function setDefault(string $default): void
52
    {
53
        $this->default = $default;
54
    }
55
56
    public function isQualified(): bool
57
    {
58
        return $this->qualified;
59
    }
60
61
    public function setQualified(bool $qualified): void
62
    {
63
        $this->qualified = $qualified;
64
    }
65
66
    public function isNil(): bool
67
    {
68
        return $this->nil;
69
    }
70
71
    public function setNil(bool $nil): void
72
    {
73
        $this->nil = $nil;
74
    }
75
76
    public function getUse(): string
77
    {
78
        return $this->use;
79
    }
80
81
    public function setUse(string $use): void
82
    {
83
        $this->use = $use;
84
    }
85
}
86