Completed
Push — php-7.1 ( 657403...bab180 )
by SignpostMarv
07:32
created

AbstractElementSingle::setQualified()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 9.4285
c 1
b 0
f 0
1
<?php
2
3
namespace GoetasWebservices\XML\XSDReader\Schema\Element;
4
5
use GoetasWebservices\XML\XSDReader\Schema\Item;
6
7
class AbstractElementSingle extends Item implements ElementSingle
8
{
9
    /**
10
     * @var int
11
     */
12
    protected $min = 1;
13
14
    /**
15
     * @var int
16
     */
17
    protected $max = 1;
18
19
    /**
20
     * @var bool
21
     */
22
    protected $qualified = true;
23
24
    /**
25
     * @var bool
26
     */
27
    protected $nil = false;
28
29
    public function isQualified() : bool
30
    {
31
        return $this->qualified;
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function setQualified(bool $qualified) : ElementSingle
38
    {
39
        $this->qualified = $qualified;
40
41
        return $this;
42
    }
43
44
    public function isNil() : bool
45
    {
46
        return $this->nil;
47
    }
48
49
    /**
50
     * {@inheritdoc}
51
     */
52
    public function setNil(bool $nil) : ElementSingle
53
    {
54
        $this->nil = $nil;
55
56
        return $this;
57
    }
58
59
    public function getMin() : int
60
    {
61
        return $this->min;
62
    }
63
64
    /**
65
     * {@inheritdoc}
66
     */
67
    public function setMin(int $min) : ElementSingle
68
    {
69
        $this->min = $min;
70
71
        return $this;
72
    }
73
74
    public function getMax() : int
75
    {
76
        return $this->max;
77
    }
78
79
    /**
80
     * {@inheritdoc}
81
     */
82
    public function setMax(int $max) : ElementSingle
83
    {
84
        $this->max = $max;
85
86
        return $this;
87
    }
88
}
89