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

Attribute   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 75
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
c 1
b 0
f 0
dl 0
loc 75
ccs 15
cts 15
cp 1
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A isQualified() 0 3 1
A isNil() 0 3 1
A setQualified() 0 5 1
A setUse() 0 5 1
A setNil() 0 5 1
A getUse() 0 3 1
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