Element::getMin()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Goetas\XML\XSDReader\Schema\Element;
3
4
use Goetas\XML\XSDReader\Schema\Item;
5
6
class Element extends Item implements ElementItem, ElementSingle
7
{
8
9
    protected $min = 1;
10
11
    protected $max = 1;
12
13
    protected $qualified = true;
14
15
    protected $nil = false;
16
17
    public function getMin()
18
    {
19
        return $this->min;
20
    }
21
22
    public function setMin($min)
23
    {
24
        $this->min = $min;
25
        return $this;
26
    }
27
28
    public function getMax()
29
    {
30
        return $this->max;
31
    }
32
33
    public function setMax($max)
34
    {
35
        $this->max = $max;
36
        return $this;
37
    }
38
39
    public function isQualified()
40
    {
41
        return $this->qualified;
42
    }
43
44
    public function setQualified($qualified)
45
    {
46
        $this->qualified = (boolean) $qualified;
47
        return $this;
48
    }
49
50
    public function isNil()
51
    {
52
        return $this->nil;
53
    }
54
55
    public function setNil($nil)
56
    {
57
        $this->nil = (boolean) $nil;
58
        return $this;
59
    }
60
}
61