Attribute::setQualified()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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