1 | <?php |
||
8 | abstract class AbstractAdapter implements AdapterInterface |
||
9 | { |
||
10 | |||
11 | use InstanceConfigTrait; |
||
12 | |||
13 | /** |
||
14 | * Response of the request |
||
15 | * |
||
16 | * @var \Psr\Http\Message\ResponseInterface |
||
17 | */ |
||
18 | protected $response; |
||
19 | |||
20 | /** |
||
21 | * AbstractAdapter constructor. |
||
22 | * |
||
23 | * @param string|array $config The Adapter configuration |
||
24 | * @throws \Exception |
||
25 | */ |
||
26 | public function __construct($config) |
||
34 | |||
35 | /** |
||
36 | * @inheritdoc |
||
37 | */ |
||
38 | abstract public function send(); |
||
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | public function response() |
||
47 | } |
||
48 |