1 | <?php |
||
13 | class MatchApi extends BaseApi |
||
14 | { |
||
15 | const API_URL_MATCH_BY_ID = '/lol/match/v3/matches/{matchId}'; |
||
16 | const API_URL_MATCH_LIST_BY_ACCOUNT = '/lol/match/v3/matchlists/by-account/{accountId}'; |
||
17 | const API_URL_RECENT_MATCH_LIST_BY_ACCOUNT = '/lol/match/v3/matchlists/by-account/{accountId}/recent'; |
||
18 | const API_URL_TIMELINES_BY_MATCH_ID = '/lol/match/v3/timelines/by-match/{matchId}'; |
||
19 | const API_URL_MATCH_ID_BY_TOURNAMENT_CODE = '/lol/match/v3/matches/by-tournament-code/{tournamentCode}/ids'; |
||
20 | const API_URL_MATCH_BY_MATCH_ID_AND_TOURNAMENT_CODE = '/lol/match/v3/matches/{matchId}/by-tournament-code/{tournamentCode}'; |
||
21 | |||
22 | /** |
||
23 | 1 | * @param int $matchId |
|
24 | * |
||
25 | 1 | * @return ApiResult |
|
26 | 1 | */ |
|
27 | public function getMatchByMatchId($matchId) |
||
33 | |||
34 | /** |
||
35 | * @param int $accountId |
||
36 | * @param array $championIds |
||
37 | * @param array $rankedQueues |
||
38 | * @param array $seasons |
||
39 | * @param int $beginTime |
||
40 | * @param int $endTime |
||
41 | * @param int $beginIndex |
||
42 | * @param int $endIndex |
||
43 | * |
||
44 | * @return ApiResult |
||
45 | */ |
||
46 | public function getMatchListByAccountId($accountId, array $championIds = [], array $rankedQueues = [], array $seasons = [], $beginTime = null, $endTime = null, $beginIndex = null, $endIndex = null) |
||
61 | |||
62 | |||
63 | /** |
||
64 | * Get matchlist for last 20 matches played on given account ID and platform ID. |
||
65 | * |
||
66 | * @throws \Exception |
||
67 | */ |
||
68 | public function getLastMatchlistByAccountId() |
||
72 | |||
73 | /** |
||
74 | * Get match timeline by match ID. |
||
75 | * |
||
76 | * @throws \Exception |
||
77 | */ |
||
78 | public function getTimelineByMatchId() |
||
82 | |||
83 | /** |
||
84 | * Get match IDs by tournament code. |
||
85 | * |
||
86 | * @param string $tournamentCode |
||
87 | * |
||
88 | * @throws \Exception |
||
89 | */ |
||
90 | public function getMatchIdByTournamentCode($tournamentCode) |
||
94 | |||
95 | /** |
||
96 | * Get match by match ID and tournament code. |
||
97 | * |
||
98 | * @param int $matchId |
||
99 | * @param string $tournamentCode |
||
100 | * |
||
101 | * @throws \Exception |
||
102 | */ |
||
103 | public function getMatchByMatchIdAndTournamentCode($matchId, $tournamentCode) |
||
107 | } |
||
108 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.