1 | <?php |
||
10 | class HousesResource extends AbstractResource |
||
11 | { |
||
12 | const TYPE_HOUSES = 'houses'; |
||
13 | |||
14 | const TYPE_GUILDHALLS = 'guildhalls'; |
||
15 | |||
16 | /** |
||
17 | * @param $world |
||
18 | * @param string $town |
||
19 | * @param string $type |
||
20 | * @return HousesResponse |
||
21 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
22 | * @throws \Igorsgm\TibiaDataApi\Exceptions\NotFoundException |
||
23 | * @throws \Igorsgm\TibiaDataApi\Exceptions\ImmutableException |
||
24 | */ |
||
25 | public function get($world, $town = 'Ab\'Dendriel', $type = self::TYPE_HOUSES) |
||
35 | |||
36 | /** |
||
37 | * @param string $type |
||
38 | * @return bool |
||
39 | */ |
||
40 | public static function isAvailableType(string $type): bool |
||
44 | |||
45 | /** |
||
46 | * @return string[] |
||
47 | */ |
||
48 | public static function getAvailableTypes(): array |
||
52 | } |
||
53 |