1 | <?php |
||
12 | class Retriever implements SmokeRetriever |
||
13 | { |
||
14 | private $apiKey; |
||
15 | private $systems; |
||
16 | private $project; |
||
17 | |||
18 | /** |
||
19 | * @var HttpAdapterInterface |
||
20 | */ |
||
21 | private $client; |
||
22 | |||
23 | const ENDPOINT_SYSTEMS = 'http://www.koalamon.com/rest/#project#/systems/?api_key=#api_key#'; |
||
24 | |||
25 | public function init($apiKey, $project) |
||
30 | |||
31 | public function setHttpClient(HttpAdapterInterface $httpClient) |
||
36 | |||
37 | public function getSystems(HttpAdapterInterface $httpClient) |
||
45 | |||
46 | private function prepareUrl($url) |
||
53 | |||
54 | public function next() |
||
67 | |||
68 | public function getComingFrom(UriInterface $uri) |
||
72 | |||
73 | public function getOriginUri(UriInterface $uri) |
||
77 | |||
78 | public function setSessionContainer(SessionContainer $sessionContainer) |
||
81 | } |
||
82 |