1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Model\Audit; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* @author Willy Reiche |
7
|
|
|
* @since 2017-08-27 |
8
|
|
|
* @version 1.0 |
9
|
|
|
*/ |
10
|
|
|
class AuditValueObject |
11
|
|
|
{ |
12
|
|
|
/** |
13
|
|
|
* @var int |
14
|
|
|
*/ |
15
|
|
|
private $numberOfIssues; |
16
|
|
|
/** |
17
|
|
|
* @var int[] |
18
|
|
|
*/ |
19
|
|
|
private $slots; |
20
|
|
|
/** |
21
|
|
|
* @var int |
22
|
|
|
*/ |
23
|
|
|
private $unspentTalentPoints; |
24
|
|
|
/** |
25
|
|
|
* @var int[] |
26
|
|
|
*/ |
27
|
|
|
private $unenchantedItems; |
28
|
|
|
/** |
29
|
|
|
* @var int |
30
|
|
|
*/ |
31
|
|
|
private $emptySockets; |
32
|
|
|
/** |
33
|
|
|
* @var int[] |
34
|
|
|
*/ |
35
|
|
|
private $itemsWithEmptySockets; |
36
|
|
|
/** |
37
|
|
|
* @var int |
38
|
|
|
*/ |
39
|
|
|
private $appropriateArmorType; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* AuditValueObject constructor. |
43
|
|
|
* @param int $numberOfIssues |
44
|
|
|
* @param int[] $slots |
45
|
|
|
* @param int $unspentTalentPoints |
46
|
|
|
* @param int[] $unenchantedItems |
47
|
|
|
* @param int $emptySockets |
48
|
|
|
* @param int[] $itemsWithEmptySockets |
49
|
|
|
* @param int $appropriateArmorType |
50
|
|
|
*/ |
51
|
|
|
public function __construct( |
52
|
|
|
$numberOfIssues, |
53
|
|
|
$slots, |
54
|
|
|
$unspentTalentPoints, |
55
|
|
|
$unenchantedItems, |
56
|
|
|
$emptySockets, |
57
|
|
|
$itemsWithEmptySockets, |
58
|
|
|
$appropriateArmorType |
59
|
|
|
) { |
60
|
|
|
$this->numberOfIssues = $numberOfIssues; |
61
|
|
|
$this->slots = $slots; |
62
|
|
|
$this->unspentTalentPoints = $unspentTalentPoints; |
63
|
|
|
$this->unenchantedItems = $unenchantedItems; |
64
|
|
|
$this->emptySockets = $emptySockets; |
65
|
|
|
$this->itemsWithEmptySockets = $itemsWithEmptySockets; |
66
|
|
|
$this->appropriateArmorType = $appropriateArmorType; |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @return int |
71
|
|
|
*/ |
72
|
|
|
public function getNumberOfIssues() |
73
|
|
|
{ |
74
|
|
|
return $this->numberOfIssues; |
75
|
|
|
} |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* @return int[] |
79
|
|
|
*/ |
80
|
|
|
public function getSlots() |
81
|
|
|
{ |
82
|
|
|
return $this->slots; |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* @return int |
87
|
|
|
*/ |
88
|
|
|
public function getUnspentTalentPoints() |
89
|
|
|
{ |
90
|
|
|
return $this->unspentTalentPoints; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* @return int[] |
95
|
|
|
*/ |
96
|
|
|
public function getUnenchantedItems() |
97
|
|
|
{ |
98
|
|
|
return $this->unenchantedItems; |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* @return int |
103
|
|
|
*/ |
104
|
|
|
public function getEmptySockets() |
105
|
|
|
{ |
106
|
|
|
return $this->emptySockets; |
107
|
|
|
} |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* @return int[] |
111
|
|
|
*/ |
112
|
|
|
public function getItemsWithEmptySockets() |
113
|
|
|
{ |
114
|
|
|
return $this->itemsWithEmptySockets; |
115
|
|
|
} |
116
|
|
|
|
117
|
|
|
/** |
118
|
|
|
* @return int |
119
|
|
|
*/ |
120
|
|
|
public function getAppropriateArmorType() |
121
|
|
|
{ |
122
|
|
|
return $this->appropriateArmorType; |
123
|
|
|
} |
124
|
|
|
} |
125
|
|
|
|