1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Viktoras\Scryfall\Entities; |
4
|
|
|
|
5
|
|
|
use DateTimeInterface; |
6
|
|
|
use Viktoras\Scryfall\Enums; |
7
|
|
|
|
8
|
|
|
class Set extends AbstractObject |
9
|
|
|
{ |
10
|
|
|
/** |
11
|
|
|
* @var string UUID |
12
|
|
|
*/ |
13
|
|
|
private $id; |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* @var string |
17
|
|
|
*/ |
18
|
|
|
private $code; |
19
|
|
|
|
20
|
|
|
/** |
21
|
|
|
* @var string|null |
22
|
|
|
*/ |
23
|
|
|
private $mtgoCode; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* @var string|null |
27
|
|
|
*/ |
28
|
|
|
private $tcgplayerId; |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* @var string |
32
|
|
|
*/ |
33
|
|
|
private $name; |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* @var string |
37
|
|
|
*/ |
38
|
|
|
private $setType; |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @var DateTimeInterface|null |
42
|
|
|
*/ |
43
|
|
|
private $releasedAt; |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @var string|null |
47
|
|
|
*/ |
48
|
|
|
private $blockCode; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @var string|null |
52
|
|
|
*/ |
53
|
|
|
private $parentSetCode; |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* @var int |
57
|
|
|
*/ |
58
|
|
|
private $cardCount; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @var bool |
62
|
|
|
*/ |
63
|
|
|
private $digital; |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @var bool |
67
|
|
|
*/ |
68
|
|
|
private $foilOnly; |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @var string |
72
|
|
|
*/ |
73
|
|
|
private $scryfallUri; |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @var string |
77
|
|
|
*/ |
78
|
|
|
private $uri; |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @var string |
82
|
|
|
*/ |
83
|
|
|
private $iconSvgUri; |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* @var string |
87
|
|
|
*/ |
88
|
|
|
private $searchUri; |
89
|
|
|
|
90
|
|
|
protected function acceptsObject(): string |
91
|
|
|
{ |
92
|
|
|
return Enums\Objects::SET; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
public function getId(): string |
96
|
|
|
{ |
97
|
|
|
return $this->id; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
public function setId(string $id): void |
101
|
|
|
{ |
102
|
|
|
$this->id = $id; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
public function getCode(): string |
106
|
|
|
{ |
107
|
|
|
return $this->code; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
public function setCode(string $code): void |
111
|
|
|
{ |
112
|
|
|
$this->code = $code; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
public function getMtgoCode(): ?string |
116
|
|
|
{ |
117
|
|
|
return $this->mtgoCode; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
public function setMtgoCode(?string $mtgoCode): void |
121
|
|
|
{ |
122
|
|
|
$this->mtgoCode = $mtgoCode; |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
public function getTcglayerId(): ?string |
126
|
|
|
{ |
127
|
|
|
return $this->tcgplayerId; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
public function setTcgplayerId(?string $tcgplayerId): void |
131
|
|
|
{ |
132
|
|
|
$this->tcgplayerId = $tcgplayerId; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
public function getName(): string |
136
|
|
|
{ |
137
|
|
|
return $this->name; |
138
|
|
|
} |
139
|
|
|
|
140
|
|
|
public function setName(string $name): void |
141
|
|
|
{ |
142
|
|
|
$this->name = $name; |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
public function getSetType(): string |
146
|
|
|
{ |
147
|
|
|
return $this->setType; |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
public function setSetType(string $setType): void |
151
|
|
|
{ |
152
|
|
|
$this->setType = $setType; |
153
|
|
|
} |
154
|
|
|
|
155
|
|
|
public function getReleasedAt(): ?DateTimeInterface |
156
|
|
|
{ |
157
|
|
|
return $this->releasedAt; |
158
|
|
|
} |
159
|
|
|
|
160
|
|
|
public function setReleasedAt(?DateTimeInterface $releasedAt): void |
161
|
|
|
{ |
162
|
|
|
$this->releasedAt = $releasedAt; |
163
|
|
|
} |
164
|
|
|
|
165
|
|
|
public function getBlockCode(): ?string |
166
|
|
|
{ |
167
|
|
|
return $this->blockCode; |
168
|
|
|
} |
169
|
|
|
|
170
|
|
|
public function setBlockCode(?string $blockCode): void |
171
|
|
|
{ |
172
|
|
|
$this->blockCode = $blockCode; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
public function getParentSetCode(): ?string |
176
|
|
|
{ |
177
|
|
|
return $this->parentSetCode; |
178
|
|
|
} |
179
|
|
|
|
180
|
|
|
public function setParentSetCode(?string $parentSetCode): void |
181
|
|
|
{ |
182
|
|
|
$this->parentSetCode = $parentSetCode; |
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
public function getCardCount(): int |
186
|
|
|
{ |
187
|
|
|
return $this->cardCount; |
188
|
|
|
} |
189
|
|
|
|
190
|
|
|
public function setCardCount(int $cardCount): void |
191
|
|
|
{ |
192
|
|
|
$this->cardCount = $cardCount; |
193
|
|
|
} |
194
|
|
|
|
195
|
|
|
public function isDigital(): bool |
196
|
|
|
{ |
197
|
|
|
return $this->digital; |
198
|
|
|
} |
199
|
|
|
|
200
|
|
|
public function setDigital(bool $digital): void |
201
|
|
|
{ |
202
|
|
|
$this->digital = $digital; |
203
|
|
|
} |
204
|
|
|
|
205
|
|
|
public function isFoilOnly(): bool |
206
|
|
|
{ |
207
|
|
|
return $this->foilOnly; |
208
|
|
|
} |
209
|
|
|
|
210
|
|
|
public function setFoilOnly(bool $foilOnly): void |
211
|
|
|
{ |
212
|
|
|
$this->foilOnly = $foilOnly; |
213
|
|
|
} |
214
|
|
|
|
215
|
|
|
public function getScryfallUri(): string |
216
|
|
|
{ |
217
|
|
|
return $this->scryfallUri; |
218
|
|
|
} |
219
|
|
|
|
220
|
|
|
public function setScryfallUri(string $scryfallUri): void |
221
|
|
|
{ |
222
|
|
|
$this->scryfallUri = $scryfallUri; |
223
|
|
|
} |
224
|
|
|
|
225
|
|
|
public function getUri(): string |
226
|
|
|
{ |
227
|
|
|
return $this->uri; |
228
|
|
|
} |
229
|
|
|
|
230
|
|
|
public function setUri(string $uri): void |
231
|
|
|
{ |
232
|
|
|
$this->uri = $uri; |
233
|
|
|
} |
234
|
|
|
|
235
|
|
|
public function getIconSvgUri(): string |
236
|
|
|
{ |
237
|
|
|
return $this->iconSvgUri; |
238
|
|
|
} |
239
|
|
|
|
240
|
|
|
public function setIconSvgUri(string $iconSvgUri): void |
241
|
|
|
{ |
242
|
|
|
$this->iconSvgUri = $iconSvgUri; |
243
|
|
|
} |
244
|
|
|
|
245
|
|
|
public function getSearchUri(): string |
246
|
|
|
{ |
247
|
|
|
return $this->searchUri; |
248
|
|
|
} |
249
|
|
|
|
250
|
|
|
public function setSearchUri(string $searchUri): void |
251
|
|
|
{ |
252
|
|
|
$this->searchUri = $searchUri; |
253
|
|
|
} |
254
|
|
|
} |
255
|
|
|
|