Completed
Push — php-7.1 ( 020623...f0f10f )
by SignpostMarv
11:52 queued 02:50
created

AbstractAttributeItem::getFixed()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 0
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(): ? string
23
    {
24
        return $this->fixed;
25
    }
26
27
    /**
28
     * @return $this
29
     */
30
    public function setFixed(string $fixed): self
31
    {
32
        $this->fixed = $fixed;
33
34
        return $this;
35
    }
36
37
    /**
38
     * @return string|null
39
     */
40
    public function getDefault(): ? string
41
    {
42
        return $this->default;
43
    }
44
45
    /**
46
     * @return $this
47
     */
48
    public function setDefault(string $default): self
49
    {
50
        $this->default = $default;
51
52
        return $this;
53
    }
54
}
55