Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function findOne(string $id): Location |
||
29 | { |
||
30 | $url = Endpoint::exploreLocations($id); |
||
31 | $data = $this->fetchContentAsArray($url); |
||
32 | |||
33 | $this->throwEmptyContentExceptionIfEmpty($data); |
||
34 | |||
35 | $data = $this->exploreLocationsMapper->normalizeData(Location::class, $data); |
||
36 | |||
37 | return $this->exploreLocationsMapper->populate(Location::class, $data); |
||
38 | } |
||
52 | } |