| Total Complexity | 3 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class GuzzleAdapter implements HttpAdapterInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var \SprykerEco\Zed\Episerver\EpiserverConfig |
||
| 20 | */ |
||
| 21 | protected $config; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var \GuzzleHttp\Client |
||
| 25 | */ |
||
| 26 | protected $client; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param \SprykerEco\Zed\Episerver\EpiserverConfig $config |
||
| 30 | * @param \GuzzleHttp\Client $client |
||
| 31 | */ |
||
| 32 | public function __construct(EpiserverConfig $config, Client $client) |
||
| 33 | { |
||
| 34 | $this->config = $config; |
||
| 35 | $this->client = $client; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $gatewayUrl |
||
| 40 | * |
||
| 41 | * @throws \SprykerEco\Zed\Episerver\Business\Exception\ApiHttpRequestException |
||
| 42 | * |
||
| 43 | * @return \Psr\Http\Message\ResponseInterface |
||
| 44 | */ |
||
| 45 | public function sendGetRequest(string $gatewayUrl): ResponseInterface |
||
| 58 | } |
||
| 59 | } |
||
| 60 |