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

Choice::getMax()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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