Passed
Pull Request — master (#71)
by Axel
09:56
created

Choice   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 8
c 1
b 0
f 0
dl 0
loc 26
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setMin() 0 3 1
A getMin() 0 3 1
A setMax() 0 3 1
A getMax() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GoetasWebservices\XML\XSDReader\Schema\Element;
6
7
use GoetasWebservices\XML\XSDReader\Schema\AbstractNamedGroupItem;
8
9
class Choice extends AbstractNamedGroupItem implements ElementItem, ElementContainer, InterfaceSetMinMax
10
{
11
    use ElementContainerTrait;
12
13
    protected int $min = 1;
14
15
    protected int $max = 1;
16
17
    public function getMin(): int
18
    {
19
        return $this->min;
20
    }
21
22
    public function setMin(int $min): void
23
    {
24
        $this->min = $min;
25
    }
26
27
    public function getMax(): int
28
    {
29
        return $this->max;
30
    }
31
32
    public function setMax(int $max): void
33
    {
34
        $this->max = $max;
35
    }
36
}
37