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

AbstractAttributeItem   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
dl 0
loc 50
ccs 0
cts 10
cp 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getFixed() 0 3 1
A setDefault() 0 5 1
A getDefault() 0 3 1
A setFixed() 0 5 1
1
<?php
2
3
namespace GoetasWebservices\XML\XSDReader\Schema\Attribute;
4
5
use GoetasWebservices\XML\XSDReader\Schema\Item;
6
7
abstract class AbstractAttributeItem extends Item implements AttributeItem
8
{
9
    /**
10
     * @var string|null
11
     */
12
    protected $fixed;
13
14
    /**
15
     * @var string|null
16
     */
17
    protected $default;
18
19
    /**
20
     * @return string|null
21
     */
22
    public function getFixed()
23
    {
24
        return $this->fixed;
25
    }
26
27
    /**
28
     * @param string $fixed
29
     *
30
     * @return $this
31
     */
32
    public function setFixed($fixed)
33
    {
34
        $this->fixed = $fixed;
35
36
        return $this;
37
    }
38
39
    /**
40
     * @return string|null
41
     */
42
    public function getDefault()
43
    {
44
        return $this->default;
45
    }
46
47
    /**
48
     * @param string $default
49
     *
50
     * @return $this
51
     */
52
    public function setDefault($default)
53
    {
54
        $this->default = $default;
55
56
        return $this;
57
    }
58
}
59