1 | <?php |
||
10 | abstract class Client |
||
11 | { |
||
12 | /** |
||
13 | * The base API endpoint. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | const ENDPOINT = 'https://openbus.emtmadrid.es:9443'; |
||
18 | |||
19 | /** |
||
20 | * The request launcher instance. |
||
21 | * |
||
22 | * @var \Afonso\Emt\RequestLauncher |
||
23 | */ |
||
24 | protected $launcher; |
||
25 | |||
26 | /** |
||
27 | * Create a new Client instance with the given client ID and passkey. |
||
28 | * |
||
29 | * @param string $clientId |
||
30 | * @param string $passkey |
||
31 | */ |
||
32 | 33 | public function __construct($clientId, $passkey) |
|
36 | |||
37 | /** |
||
38 | * Set the RequestLauncher instance to be used by this client. |
||
39 | * |
||
40 | * @param \Afonso\Emt\RequestLauncher $launcher |
||
41 | */ |
||
42 | 33 | public function setRequestLauncher(RequestLauncher $launcher) |
|
46 | } |
||
47 |