| 1 | <?php |
||
| 5 | class ApiAdapter implements AdapterInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var ApiInterface $api |
||
| 9 | */ |
||
| 10 | private $api; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | private $cachedResults; |
||
| 16 | |||
| 17 | public function __construct(ApiInterface $api) |
||
| 21 | |||
| 22 | public function getNumberOfResults(array $queryParameters, array $uriParameters = []) |
||
| 28 | |||
| 29 | public function getResults(array $queryParameters, array $uriParameters = []) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param array $queryParameters |
||
| 38 | * @param array $uriParameters |
||
| 39 | * @param bool $cacheResult |
||
| 40 | * |
||
| 41 | * @return array |
||
| 42 | */ |
||
| 43 | private function getResult(array $queryParameters, array $uriParameters, $cacheResult = false) |
||
| 58 | } |
||
| 59 |