Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function get($world, $town = 'Ab\'Dendriel', $type = self::TYPE_HOUSES) |
||
26 | { |
||
27 | if (!self::isAvailableType($type)) { |
||
28 | throw new \InvalidArgumentException('Invalid type.'); |
||
29 | } |
||
30 | |||
31 | $response = $this->sendRequest('GET', "houses/{$world}/{$town}/{$type}.json"); |
||
32 | |||
33 | return new HousesResponse($response); |
||
34 | } |
||
35 | |||
53 |