AbstractAttributeItem   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getFixed() 0 3 1
A setDefault() 0 3 1
A getDefault() 0 3 1
A setFixed() 0 3 1
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