Completed
Push — master ( da8fcc...d64df6 )
by Asmir
02:56
created

Element::setMax()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1
Metric Value
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
namespace GoetasWebservices\XML\XSDReader\Schema\Element;
3
4
use GoetasWebservices\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 2
    public function getMin()
18
    {
19 2
        return $this->min;
20
    }
21
22 39
    public function setMin($min)
23
    {
24 39
        $this->min = $min;
25 39
        return $this;
26
    }
27
28 4
    public function getMax()
29
    {
30 4
        return $this->max;
31
    }
32
33 39
    public function setMax($max)
34
    {
35 39
        $this->max = $max;
36 39
        return $this;
37
    }
38
39 1
    public function isQualified()
40
    {
41 1
        return $this->qualified;
42
    }
43
44 3
    public function setQualified($qualified)
45
    {
46 3
        $this->qualified = (boolean) $qualified;
47 3
        return $this;
48
    }
49
50 1
    public function isNil()
51
    {
52 1
        return $this->nil;
53
    }
54
55 3
    public function setNil($nil)
56
    {
57 3
        $this->nil = (boolean) $nil;
58 3
        return $this;
59
    }
60
}
61