AbstractElementSingle   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 8
dl 0
loc 60
ccs 19
cts 19
cp 1
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A isNil() 0 3 1
A isQualified() 0 3 1
A setNil() 0 3 1
A setQualified() 0 3 1
A setMin() 0 3 1
A setMax() 0 3 1
A getMax() 0 3 1
A getMin() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GoetasWebservices\XML\XSDReader\Schema\Element;
6
7
use GoetasWebservices\XML\XSDReader\Schema\Item;
8
9
class AbstractElementSingle extends Item implements ElementSingle
10
{
11
    /**
12
     * @var int
13
     */
14
    protected $min = 1;
15
16
    /**
17
     * @var int
18
     */
19
    protected $max = 1;
20
21
    /**
22
     * @var bool
23
     */
24
    protected $qualified = true;
25
26
    /**
27
     * @var bool
28
     */
29
    protected $nil = false;
30
31 1
    public function isQualified(): bool
32
    {
33 1
        return $this->qualified;
34
    }
35
36 3
    public function setQualified(bool $qualified): void
37
    {
38 3
        $this->qualified = $qualified;
39 3
    }
40
41 1
    public function isNil(): bool
42
    {
43 1
        return $this->nil;
44
    }
45
46 3
    public function setNil(bool $nil): void
47
    {
48 3
        $this->nil = $nil;
49 3
    }
50
51 58
    public function getMin(): int
52
    {
53 58
        return $this->min;
54
    }
55
56 58
    public function setMin(int $min): void
57
    {
58 58
        $this->min = $min;
59 58
    }
60
61 58
    public function getMax(): int
62
    {
63 58
        return $this->max;
64
    }
65
66 58
    public function setMax(int $max): void
67
    {
68 58
        $this->max = $max;
69 58
    }
70
}
71