Total Complexity | 3 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class Cities extends Client |
||
13 | { |
||
14 | /** |
||
15 | * Create new city in country |
||
16 | * |
||
17 | * @link https://api.u-on.ru/{key}/city/create.{_format} |
||
18 | * |
||
19 | * @param array $parameters List of parameters |
||
20 | * |
||
21 | * @return null|object|\Uon\Interfaces\ClientInterface |
||
22 | */ |
||
23 | public function create(array $parameters) |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Get all cities by country id |
||
35 | * |
||
36 | * @link https://api.u-on.ru/{key}/cities/{country_id}.{_format} |
||
37 | * |
||
38 | * @param int $countryId Unique ID of country |
||
39 | * @param int $page Number of page, 1 by default |
||
40 | * |
||
41 | * @return null|object|\Uon\Interfaces\ClientInterface |
||
42 | */ |
||
43 | public function all(int $countryId, int $page = 1) |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Update some city by ID |
||
54 | * |
||
55 | * @link https://api.u-on.ru/{key}/city/update/{id}.{_format} |
||
56 | * |
||
57 | * @param int $id Unique city ID |
||
58 | * @param array $parameters List of parameters |
||
59 | * |
||
60 | * @return null|object|\Uon\Interfaces\ClientInterface |
||
61 | */ |
||
62 | public function update(int $id, array $parameters) |
||
72 |