Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class Players extends Api |
||
6 | { |
||
7 | /** |
||
8 | * Fetch all players (nfl only) |
||
9 | * |
||
10 | * @return array |
||
11 | * @throws ClientException if status code <> 200 |
||
12 | * @throws Exception if response body equals null |
||
13 | */ |
||
14 | 1 | public function all(): array |
|
17 | } |
||
18 | |||
19 | /** |
||
20 | * Get a list of trending players based on adds or drops |
||
21 | * |
||
22 | * @param string $type |
||
23 | * @param string $sport |
||
24 | * @param string $hours |
||
25 | * @param string $limit |
||
26 | * |
||
27 | * @return array |
||
28 | * @throws InvalidArgumentException if params doesn't match |
||
29 | * @throws ClientException if status code <> 200 |
||
30 | * @throws Exception if response body equals null |
||
31 | */ |
||
32 | public function trending(string $type, string $sport = 'nfl', int $hours = 24, int $limit = 25): array |
||
43 |