1 | <?php |
||
7 | class Downloader |
||
8 | { |
||
9 | /** @var ClientInterface $client */ |
||
10 | private $client; |
||
11 | |||
12 | /** @var Finder $finder */ |
||
13 | private $finder; |
||
14 | |||
15 | /** |
||
16 | * @param ClientInterface $client |
||
17 | * @param Finder $finder |
||
18 | */ |
||
19 | 2 | public function __construct(ClientInterface $client, Finder $finder) |
|
24 | |||
25 | /** |
||
26 | * @param string $dataset |
||
27 | * @param string $format |
||
28 | * @param string $filter |
||
29 | * @param bool $updateExisting |
||
30 | * |
||
31 | * @return false|string downloaded file content |
||
32 | */ |
||
33 | 1 | public function download($dataset, $format, $filter = null, $updateExisting = false) |
|
52 | |||
53 | /** |
||
54 | * @param string $dataset |
||
55 | * @param string $format |
||
56 | * @param string $filter |
||
57 | * @return false|string |
||
58 | */ |
||
59 | 1 | public function findDownload($dataset, $format, $filter = null) |
|
63 | } |
||
64 |