1 | <?php |
||
12 | class Gateway |
||
13 | { |
||
14 | const URL = 'https://class.api.wiziq.com'; |
||
15 | |||
16 | /** @var Auth */ |
||
17 | private $auth; |
||
18 | |||
19 | /** @var ClientInterface */ |
||
20 | private $client; |
||
21 | |||
22 | /** @var string */ |
||
23 | private $endpointUrl; |
||
24 | |||
25 | 2 | public function __construct(Auth $auth, ClientInterface $client = null, $endpointUrl = self::URL) |
|
31 | |||
32 | /** |
||
33 | * @param RequestInterface $wiziqRequest |
||
34 | * |
||
35 | * @return \SimpleXMLElement |
||
36 | * |
||
37 | * @throws CallException If Wiziq declined the request |
||
38 | */ |
||
39 | 2 | public function sendRequest(RequestInterface $wiziqRequest) |
|
54 | } |
||
55 |