Passed
Push — master ( b9fa94...9233ac )
by Willy
01:57
created

DefensiveStatValueObject   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 115
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 8
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 115
ccs 0
cts 45
cp 0
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 17 1
A getArmor() 0 4 1
A getDodge() 0 4 1
A getDodgeRating() 0 4 1
A getParry() 0 4 1
A getParryRating() 0 4 1
A getBlock() 0 4 1
A getBlockRating() 0 4 1
1
<?php
2
3
namespace Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Model\Stat;
4
5
/**
6
 * @author  Willy Reiche
7
 * @since   2017-08-26
8
 * @version 1.0
9
 */
10
class DefensiveStatValueObject
11
{
12
    /**
13
     * @var int
14
     */
15
    private $armor;
16
    /**
17
     * @var float
18
     */
19
    private $dodge;
20
    /**
21
     * @var int
22
     */
23
    private $dodgeRating;
24
    /**
25
     * @var float
26
     */
27
    private $parry;
28
    /**
29
     * @var int
30
     */
31
    private $parryRating;
32
    /**
33
     * @var float
34
     */
35
    private $block;
36
    /**
37
     * @var int
38
     */
39
    private $blockRating;
40
41
    /**
42
     * DefensiveStatValueObject constructor.
43
     * @param int   $armor
44
     * @param float $dodge
45
     * @param int   $dodgeRating
46
     * @param float $parry
47
     * @param int   $parryRating
48
     * @param float $block
49
     * @param int   $blockRating
50
     */
51
    public function __construct(
52
        $armor,
53
        $dodge,
54
        $dodgeRating,
55
        $parry,
56
        $parryRating,
57
        $block,
58
        $blockRating
59
    ) {
60
        $this->armor = $armor;
61
        $this->dodge = $dodge;
62
        $this->dodgeRating = $dodgeRating;
63
        $this->parry = $parry;
64
        $this->parryRating = $parryRating;
65
        $this->block = $block;
66
        $this->blockRating = $blockRating;
67
    }
68
69
    /**
70
     * @return int
71
     */
72
    public function getArmor()
73
    {
74
        return $this->armor;
75
    }
76
77
    /**
78
     * @return float
79
     */
80
    public function getDodge()
81
    {
82
        return $this->dodge;
83
    }
84
85
    /**
86
     * @return int
87
     */
88
    public function getDodgeRating()
89
    {
90
        return $this->dodgeRating;
91
    }
92
93
    /**
94
     * @return float
95
     */
96
    public function getParry()
97
    {
98
        return $this->parry;
99
    }
100
101
    /**
102
     * @return int
103
     */
104
    public function getParryRating()
105
    {
106
        return $this->parryRating;
107
    }
108
109
    /**
110
     * @return float
111
     */
112
    public function getBlock()
113
    {
114
        return $this->block;
115
    }
116
117
    /**
118
     * @return int
119
     */
120
    public function getBlockRating()
121
    {
122
        return $this->blockRating;
123
    }
124
}
125