| 1 | <?php |
||
| 14 | class Client |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var ApiClient |
||
| 19 | */ |
||
| 20 | private $apiClient; |
||
| 21 | |||
| 22 | 13 | private function __construct(ApiClient $apiClient) |
|
| 26 | |||
| 27 | 13 | public static function create(string $apiKey, ?ClientInterface $httpClient = null): Client |
|
| 36 | |||
| 37 | 8 | public function getMatches(MatchesQuery $query = null): Matches |
|
| 45 | |||
| 46 | 2 | public function getMatch(string $matchId): Match |
|
| 53 | |||
| 54 | 2 | public function getPlayers(PlayersQuery $query = null): Players |
|
| 62 | |||
| 63 | 1 | public function getPlayer(string $playerId): Player |
|
| 70 | } |
||
| 71 |