AbstractAttributeItem::setFixed()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GoetasWebservices\XML\XSDReader\Schema\Attribute;
6
7
use GoetasWebservices\XML\XSDReader\Schema\Item;
8
9
abstract class AbstractAttributeItem extends Item implements AttributeItem
10
{
11
    /**
12
     * @var string|null
13
     */
14
    protected $fixed;
15
16
    /**
17
     * @var string|null
18
     */
19
    protected $default;
20
21
    public function getFixed(): ?string
22
    {
23
        return $this->fixed;
24
    }
25
26
    public function setFixed(string $fixed): void
27
    {
28
        $this->fixed = $fixed;
29
    }
30
31
    public function getDefault(): ?string
32
    {
33
        return $this->default;
34
    }
35
36
    public function setDefault(string $default): void
37
    {
38
        $this->default = $default;
39
    }
40
}
41