1 | <?php |
||
12 | class WikidataQueryApi { |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $apiUrl; |
||
18 | |||
19 | /** |
||
20 | * @var ClientInterface |
||
21 | */ |
||
22 | private $client; |
||
23 | |||
24 | /** |
||
25 | * @param string $apiUrl the URL of the Wikidata Query API |
||
26 | * @param ClientInterface|null $client the Guzzle client to use |
||
27 | */ |
||
28 | 2 | public function __construct( $apiUrl, ClientInterface $client = null ) { |
|
36 | |||
37 | /** |
||
38 | * @param array $params |
||
39 | * @return array |
||
40 | * |
||
41 | * @throws WikibaseQueryApiException |
||
42 | */ |
||
43 | 2 | public function doQuery( $params ) { |
|
55 | } |
||
56 |