Skip to content

Commit 77d1873

Browse files
committed
Merge branch 'DynamoGeek-master'
2 parents 82b5746 + 2ea2bbf commit 77d1873

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

src/Models/Set.php

+42
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ class Set extends Model
4040
*/
4141
private $standardLegal;
4242

43+
/**
44+
* @var boolean
45+
*/
46+
private $expandedLegal;
47+
4348
/**
4449
* @var string
4550
*/
@@ -50,6 +55,11 @@ class Set extends Model
5055
*/
5156
private $symbolUrl;
5257

58+
/**
59+
* @var string
60+
*/
61+
private $logoUrl;
62+
5363
/**
5464
* @return string
5565
*/
@@ -146,6 +156,22 @@ public function setStandardLegal($standardLegal)
146156
$this->standardLegal = $standardLegal;
147157
}
148158

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+
149175
/**
150176
* @return string
151177
*/
@@ -178,4 +204,20 @@ public function setSymbolUrl($symbolUrl)
178204
$this->symbolUrl = $symbolUrl;
179205
}
180206

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+
181223
}

tests/SetTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ public function testFindReturnOneSet()
5757
$this->assertEquals('XY', $set->getSeries());
5858
$this->assertEquals(115, $set->getTotalCards());
5959
$this->assertEquals(true, $set->isStandardLegal());
60+
$this->assertEquals(true, $set->isExpandedLegal());
6061
$this->assertEquals('02/22/2016', $set->getReleaseDate());
6162
$this->assertEquals('https://images.pokemontcg.io/g1/symbol.png', $set->getSymbolUrl());
63+
$this->assertEquals('https://images.pokemontcg.io/g1/logo.png', $set->getLogoUrl());
6264
}
6365

6466
/**

tests/lib/fixtures/sets/find.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"series": "XY",
77
"totalCards": 115,
88
"standardLegal": true,
9+
"expandedLegal": true,
910
"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"
1113
}
1214
}

0 commit comments

Comments
 (0)