Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function getAll() |
||
26 | { |
||
27 | $regions = $this->adapter->get(sprintf('%s/regions?per_page=%d', $this->endpoint, 200)); |
||
28 | |||
29 | $regions = json_decode($regions); |
||
30 | |||
31 | $this->extractMeta($regions); |
||
32 | |||
33 | return array_map(function ($region) { |
||
34 | return new RegionEntity($region); |
||
35 | }, $regions->regions); |
||
36 | } |
||
37 | } |
||
38 |