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

Element   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%
Metric Value
wmc 8
lcom 0
cbo 1
dl 0
loc 55
ccs 20
cts 20
cp 1
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getMin() 0 4 1
A setMin() 0 5 1
A getMax() 0 4 1
A setMax() 0 5 1
A isQualified() 0 4 1
A setQualified() 0 5 1
A isNil() 0 4 1
A setNil() 0 5 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