1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Achievement\Model; |
4
|
|
|
|
5
|
|
|
class AchievementsValueObject |
6
|
|
|
{ |
7
|
|
|
/** |
8
|
|
|
* @var string |
9
|
|
|
*/ |
10
|
|
|
private $achievementsCompleted; |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* @var string |
14
|
|
|
*/ |
15
|
|
|
private $achievementsCompletedTimestamp; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* @var string |
19
|
|
|
*/ |
20
|
|
|
private $criteria; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* @var string |
24
|
|
|
*/ |
25
|
|
|
private $criteriaQuantity; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @var string |
29
|
|
|
*/ |
30
|
|
|
private $criteriaTimestamp; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @var string |
34
|
|
|
*/ |
35
|
|
|
private $criteriaCreated; |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* AchievementsValueObject constructor. |
39
|
|
|
* @param string $achievementsCompleted |
40
|
|
|
* @param string $achievementsCompletedTimestamp |
41
|
|
|
* @param string $criteria |
42
|
|
|
* @param string $criteriaQuantity |
43
|
|
|
* @param string $criteriaTimestamp |
44
|
|
|
* @param string $criteriaCreated |
45
|
|
|
*/ |
46
|
|
|
public function __construct( |
47
|
|
|
$achievementsCompleted, |
48
|
|
|
$achievementsCompletedTimestamp, |
49
|
|
|
$criteria, |
50
|
|
|
$criteriaQuantity, |
51
|
|
|
$criteriaTimestamp, |
52
|
|
|
$criteriaCreated |
53
|
|
|
) { |
54
|
|
|
$this->achievementsCompleted = $achievementsCompleted; |
55
|
|
|
$this->achievementsCompletedTimestamp = $achievementsCompletedTimestamp; |
56
|
|
|
$this->criteria = $criteria; |
57
|
|
|
$this->criteriaQuantity = $criteriaQuantity; |
58
|
|
|
$this->criteriaTimestamp = $criteriaTimestamp; |
59
|
|
|
$this->criteriaCreated = $criteriaCreated; |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* @return string |
64
|
|
|
*/ |
65
|
|
|
public function getAchievementsCompleted() |
66
|
|
|
{ |
67
|
|
|
return $this->achievementsCompleted; |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @return string |
72
|
|
|
*/ |
73
|
|
|
public function getAchievementsCompletedTimestamp() |
74
|
|
|
{ |
75
|
|
|
return $this->achievementsCompletedTimestamp; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @return string |
80
|
|
|
*/ |
81
|
|
|
public function getCriteria() |
82
|
|
|
{ |
83
|
|
|
return $this->criteria; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @return string |
88
|
|
|
*/ |
89
|
|
|
public function getCriteriaQuantity() |
90
|
|
|
{ |
91
|
|
|
return $this->criteriaQuantity; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @return string |
96
|
|
|
*/ |
97
|
|
|
public function getCriteriaTimestamp() |
98
|
|
|
{ |
99
|
|
|
return $this->criteriaTimestamp; |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* @return string |
104
|
|
|
*/ |
105
|
|
|
public function getCriteriaCreated() |
106
|
|
|
{ |
107
|
|
|
return $this->criteriaCreated; |
108
|
|
|
} |
109
|
|
|
} |
110
|
|
|
|