Passed
Push — master ( 86b291...5e082c )
by Willy
02:08
created

DamageValueObject::getExactMax()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Model\Item;
4
5
/**
6
 * @author  Willy Reiche
7
 * @since   2017-08-23
8
 * @version 1.0
9
 */
10
class DamageValueObject
11
{
12
    /**
13
     * @var int
14
     */
15
    private $min;
16
    /**
17
     * @var int
18
     */
19
    private $max;
20
    /**
21
     * @var int
22
     */
23
    private $exactMin;
24
    /**
25
     * @var int
26
     */
27
    private $exactMax;
28
29
    /**
30
     * DamageValueObject constructor.
31
     * @param int $min
32
     * @param int $max
33
     * @param int $exactMin
34
     * @param int $exactMax
35
     */
36
    public function __construct(
37
        $min,
38
        $max,
39
        $exactMin,
40
        $exactMax
41
    ) {
42
        $this->min = $min;
43
        $this->max = $max;
44
        $this->exactMin = $exactMin;
45
        $this->exactMax = $exactMax;
46
    }
47
48
    /**
49
     * @return int
50
     */
51
    public function getMin()
52
    {
53
        return $this->min;
54
    }
55
56
    /**
57
     * @return int
58
     */
59
    public function getMax()
60
    {
61
        return $this->max;
62
    }
63
64
    /**
65
     * @return int
66
     */
67
    public function getExactMin()
68
    {
69
        return $this->exactMin;
70
    }
71
72
    /**
73
     * @return int
74
     */
75
    public function getExactMax()
76
    {
77
        return $this->exactMax;
78
    }
79
}
80