| 1 | <?php |
||
| 15 | class GuzzleClient implements IframelyClientInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var null|string |
||
| 19 | */ |
||
| 20 | private $apiKey; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var ClientInterface |
||
| 24 | */ |
||
| 25 | private $client; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Class constructor. |
||
| 29 | * |
||
| 30 | * @param string|null $apiKey API key. |
||
| 31 | * @param ClientInterface $client Guzzle Client |
||
| 32 | */ |
||
| 33 | 8 | public function __construct(string $apiKey, ClientInterface $client) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | 4 | public function getUrlData(string $url): IframelyDTO |
|
| 52 | } |
||
| 53 |