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

BaseStatValueObject::getStr()   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\Stat;
4
5
/**
6
 * @author  Willy Reiche
7
 * @since   2017-08-26
8
 * @version 1.0
9
 */
10
class BaseStatValueObject
11
{
12
    /**
13
     * @var int
14
     */
15
    private $health;
16
    /**
17
     * @var string
18
     */
19
    private $powerType;
20
    /**
21
     * @var int
22
     */
23
    private $power;
24
    /**
25
     * @var int
26
     */
27
    private $str;
28
    /**
29
     * @var int
30
     */
31
    private $agi;
32
    /**
33
     * @var int
34
     */
35
    private $int;
36
    /**
37
     * @var int
38
     */
39
    private $sta;
40
41
    /**
42
     * BaseStatValueObject constructor.
43
     * @param int    $health
44
     * @param string $powerType
45
     * @param int    $power
46
     * @param int    $str
47
     * @param int    $agi
48
     * @param int    $int
49
     * @param int    $sta
50
     */
51
    public function __construct(
52
        $health,
53
        $powerType,
54
        $power,
55
        $str,
56
        $agi,
57
        $int,
58
        $sta
59
    ) {
60
        $this->health = $health;
61
        $this->powerType = $powerType;
62
        $this->power = $power;
63
        $this->str = $str;
64
        $this->agi = $agi;
65
        $this->int = $int;
66
        $this->sta = $sta;
67
    }
68
69
    /**
70
     * @return int
71
     */
72
    public function getHealth()
73
    {
74
        return $this->health;
75
    }
76
77
    /**
78
     * @return string
79
     */
80
    public function getPowerType()
81
    {
82
        return $this->powerType;
83
    }
84
85
    /**
86
     * @return int
87
     */
88
    public function getPower()
89
    {
90
        return $this->power;
91
    }
92
93
    /**
94
     * @return int
95
     */
96
    public function getStr()
97
    {
98
        return $this->str;
99
    }
100
101
    /**
102
     * @return int
103
     */
104
    public function getAgi()
105
    {
106
        return $this->agi;
107
    }
108
109
    /**
110
     * @return int
111
     */
112
    public function getInt()
113
    {
114
        return $this->int;
115
    }
116
117
    /**
118
     * @return int
119
     */
120
    public function getSta()
121
    {
122
        return $this->sta;
123
    }
124
}
125