AbstractElementSingle::getMin()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 1
nc 1
nop 0
crap 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