File tree 3 files changed +47
-1
lines changed
3 files changed +47
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ class Set extends Model
40
40
*/
41
41
private $ standardLegal ;
42
42
43
+ /**
44
+ * @var boolean
45
+ */
46
+ private $ expandedLegal ;
47
+
43
48
/**
44
49
* @var string
45
50
*/
@@ -50,6 +55,11 @@ class Set extends Model
50
55
*/
51
56
private $ symbolUrl ;
52
57
58
+ /**
59
+ * @var string
60
+ */
61
+ private $ logoUrl ;
62
+
53
63
/**
54
64
* @return string
55
65
*/
@@ -146,6 +156,22 @@ public function setStandardLegal($standardLegal)
146
156
$ this ->standardLegal = $ standardLegal ;
147
157
}
148
158
159
+ /**
160
+ * @return boolean
161
+ */
162
+ public function isExpandedLegal ()
163
+ {
164
+ return (boolean )$ this ->expandedLegal ;
165
+ }
166
+
167
+ /**
168
+ * @param boolean $expandedLegal
169
+ */
170
+ public function setExpandedLegal ($ expandedLegal )
171
+ {
172
+ $ this ->expandedLegal = $ expandedLegal ;
173
+ }
174
+
149
175
/**
150
176
* @return string
151
177
*/
@@ -178,4 +204,20 @@ public function setSymbolUrl($symbolUrl)
178
204
$ this ->symbolUrl = $ symbolUrl ;
179
205
}
180
206
207
+ /**
208
+ * @return string
209
+ */
210
+ public function getLogoUrl ()
211
+ {
212
+ return (string )$ this ->logoUrl ;
213
+ }
214
+
215
+ /**
216
+ * @param string $logoUrl
217
+ */
218
+ public function setLogoUrl ($ logoUrl )
219
+ {
220
+ $ this ->logoUrl = $ logoUrl ;
221
+ }
222
+
181
223
}
Original file line number Diff line number Diff line change @@ -57,8 +57,10 @@ public function testFindReturnOneSet()
57
57
$ this ->assertEquals ('XY ' , $ set ->getSeries ());
58
58
$ this ->assertEquals (115 , $ set ->getTotalCards ());
59
59
$ this ->assertEquals (true , $ set ->isStandardLegal ());
60
+ $ this ->assertEquals (true , $ set ->isExpandedLegal ());
60
61
$ this ->assertEquals ('02/22/2016 ' , $ set ->getReleaseDate ());
61
62
$ this ->assertEquals ('https://images.pokemontcg.io/g1/symbol.png ' , $ set ->getSymbolUrl ());
63
+ $ this ->assertEquals ('https://images.pokemontcg.io/g1/logo.png ' , $ set ->getLogoUrl ());
62
64
}
63
65
64
66
/**
Original file line number Diff line number Diff line change 6
6
"series" : " XY" ,
7
7
"totalCards" : 115 ,
8
8
"standardLegal" : true ,
9
+ "expandedLegal" : true ,
9
10
"releaseDate" : " 02/22/2016" ,
10
- "symbolUrl" : " https://images.pokemontcg.io/g1/symbol.png"
11
+ "symbolUrl" : " https://images.pokemontcg.io/g1/symbol.png" ,
12
+ "logoUrl" : " https://images.pokemontcg.io/g1/logo.png"
11
13
}
12
14
}
You can’t perform that action at this time.
0 commit comments