Passed
Push — static-analysis ( 7cdbe5...5cd72e )
by SignpostMarv
02:49
created

Attribute::setUse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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