1 | <?php namespace GameScan\Core\Request\Api; |
||
11 | class GameApiRequest |
||
12 | { |
||
13 | |||
14 | protected $apiConfiguration; |
||
15 | protected $apiRequest; |
||
16 | |||
17 | 14 | public function __construct(ApiConfigurationInterface $apiConfiguration, ApiRequestInterface $apiRequest = null) |
|
22 | |||
23 | public function setApiConfiguration(ApiConfigurationInterface $apiConfiguration) |
||
27 | |||
28 | /** |
||
29 | * Request a ressource of an api with the get http method |
||
30 | * @param $ressourceToGrab |
||
31 | * @param array|null $parameters |
||
32 | * @return string |
||
33 | */ |
||
34 | 14 | public function get($ressourceToGrab, array $parameters = null) |
|
42 | } |
||
43 |