Total Complexity | 2 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
4 | class GeoService extends AbstractService |
||
5 | { |
||
6 | /** |
||
7 | * Get the most popular artists by country |
||
8 | * |
||
9 | * @param string $country |
||
10 | * @param integer $page |
||
11 | * @param integer $limit |
||
12 | */ |
||
13 | 1 | public function getTopArtists( |
|
14 | string $country, |
||
15 | int $page = 1, |
||
16 | int $limit = 50 |
||
17 | ) |
||
18 | { |
||
|
|||
19 | 1 | return $this->provider |
|
20 | 1 | ->getResource($this->http) |
|
21 | 1 | ->geo() |
|
22 | 1 | ->getTopArtists($country, $page, $limit); |
|
23 | } |
||
24 | |||
25 | /** |
||
26 | * Get the most popular tracks by country |
||
27 | * |
||
28 | * @param string $country |
||
29 | * @param string $location |
||
30 | * @param integer $limit |
||
31 | * @param integer $page |
||
32 | * @return \Tightenco\Collect\Support\Collection |
||
33 | */ |
||
34 | 1 | public function getTopTracks( |
|
44 | } |
||
45 | } |