1 | <?php |
||
16 | class DataService extends AbstractService |
||
17 | { |
||
18 | /** |
||
19 | * @var \HDNET\OnpageIntegration\Provider\ConfigurationProvider |
||
20 | */ |
||
21 | protected $configurationProvider; |
||
22 | /** |
||
23 | * @var \HDNET\OnpageIntegration\Service\ArrayService |
||
24 | */ |
||
25 | protected $arrayService; |
||
26 | /** |
||
27 | * @var \HDNET\OnpageIntegration\Provider\AuthenticationProvider |
||
28 | */ |
||
29 | protected $authenticationProvider; |
||
30 | /** |
||
31 | * @var \HDNET\OnpageIntegration\Service\ApiCallService |
||
32 | */ |
||
33 | protected $apiCallService; |
||
34 | |||
35 | /** |
||
36 | * DataService constructor. |
||
37 | */ |
||
38 | public function __construct() |
||
45 | |||
46 | /** |
||
47 | * @param string $key |
||
48 | * |
||
49 | * @return array |
||
50 | * @throws ApiErrorException |
||
51 | */ |
||
52 | public function getApiResult($key) |
||
64 | |||
65 | /** |
||
66 | * @return array |
||
67 | * @throws ApiErrorException |
||
68 | */ |
||
69 | public function getAllResults() |
||
81 | |||
82 | /** |
||
83 | * @param array $apiCall |
||
84 | * |
||
85 | * @return string |
||
86 | */ |
||
87 | protected function makeApiCall(array $apiCall) |
||
92 | |||
93 | /** |
||
94 | * @param string $apiCallKey |
||
95 | * @return array |
||
96 | */ |
||
97 | protected function getApiCall($apiCallKey) |
||
104 | } |
||
105 |