| 1 | <?php |
||
| 16 | class ApiResultLoader |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var \HDNET\OnpageIntegration\Service\DataService |
||
| 21 | */ |
||
| 22 | protected $dataService; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var \HDNET\OnpageIntegration\Persister\ApiResultToCachePersister |
||
| 26 | */ |
||
| 27 | protected $persister; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * ApiResultLoader constructor. |
||
| 31 | * |
||
| 32 | * @param \HDNET\OnpageIntegration\Service\DataService $dataService |
||
| 33 | * @param \HDNET\OnpageIntegration\Persister\ApiResultToCachePersister $apiResultToCachePersister |
||
| 34 | */ |
||
| 35 | public function __construct(DataService $dataService, ApiResultToCachePersister $apiResultToCachePersister) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $key |
||
| 43 | * |
||
| 44 | * @return array |
||
| 45 | */ |
||
| 46 | public function load($key) |
||
| 62 | } |
||
| 63 |