Element   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 1

Importance

Changes 5
Bugs 0 Features 0
Metric Value
wmc 8
c 5
b 0
f 0
cbo 1
dl 0
loc 55
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 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