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 StatValueObject |
11
|
|
|
{ |
12
|
|
|
/** |
13
|
|
|
* @var BaseStatValueObject |
14
|
|
|
*/ |
15
|
|
|
private $baseStats; |
16
|
|
|
/** |
17
|
|
|
* @var SecondaryStatValueObject |
18
|
|
|
*/ |
19
|
|
|
private $secondaryStats; |
20
|
|
|
/** |
21
|
|
|
* @var TertiaryStatValueObject |
22
|
|
|
*/ |
23
|
|
|
private $tertiaryStats; |
24
|
|
|
/** |
25
|
|
|
* @var DefensiveStatValueObject |
26
|
|
|
*/ |
27
|
|
|
private $defensiveStats; |
28
|
|
|
/** |
29
|
|
|
* @var OffensiveStatValueObject |
30
|
|
|
*/ |
31
|
|
|
private $offensiveStats; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* StatValueObject constructor. |
35
|
|
|
* @param BaseStatValueObject $baseStats |
36
|
|
|
* @param SecondaryStatValueObject $secondaryStats |
37
|
|
|
* @param TertiaryStatValueObject $tertiaryStats |
38
|
|
|
* @param DefensiveStatValueObject $defensiveStats |
39
|
|
|
* @param OffensiveStatValueObject $offensiveStats |
40
|
|
|
*/ |
41
|
|
|
public function __construct( |
42
|
|
|
$baseStats, |
43
|
|
|
$secondaryStats, |
44
|
|
|
$tertiaryStats, |
45
|
|
|
$defensiveStats, |
46
|
|
|
$offensiveStats |
47
|
|
|
) { |
48
|
|
|
$this->baseStats = $baseStats; |
49
|
|
|
$this->secondaryStats = $secondaryStats; |
50
|
|
|
$this->tertiaryStats = $tertiaryStats; |
51
|
|
|
$this->defensiveStats = $defensiveStats; |
52
|
|
|
$this->offensiveStats = $offensiveStats; |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* @return BaseStatValueObject |
57
|
|
|
*/ |
58
|
|
|
public function getBaseStats() |
59
|
|
|
{ |
60
|
|
|
return $this->baseStats; |
61
|
|
|
} |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @return SecondaryStatValueObject |
65
|
|
|
*/ |
66
|
|
|
public function getSecondaryStats() |
67
|
|
|
{ |
68
|
|
|
return $this->secondaryStats; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @return TertiaryStatValueObject |
73
|
|
|
*/ |
74
|
|
|
public function getTertiaryStats() |
75
|
|
|
{ |
76
|
|
|
return $this->tertiaryStats; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @return DefensiveStatValueObject |
81
|
|
|
*/ |
82
|
|
|
public function getDefensiveStats() |
83
|
|
|
{ |
84
|
|
|
return $this->defensiveStats; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @return OffensiveStatValueObject |
89
|
|
|
*/ |
90
|
|
|
public function getOffensiveStats() |
91
|
|
|
{ |
92
|
|
|
return $this->offensiveStats; |
93
|
|
|
} |
94
|
|
|
} |
95
|
|
|
|