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

DamageValueObject   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 70
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 70
ccs 0
cts 27
cp 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
A getMin() 0 4 1
A getMax() 0 4 1
A getExactMin() 0 4 1
A getExactMax() 0 4 1
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