1 | <?php |
||
14 | abstract class AbstractConnection implements ConnectionInterface |
||
15 | { |
||
16 | /** |
||
17 | * Default Endpoint. |
||
18 | */ |
||
19 | public const DEFAULT_WS_ENDPOINT = 'https://api.setlist.fm/rest/1.0/'; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $apiKey; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $uri; |
||
30 | |||
31 | /** |
||
32 | * @param string $uri |
||
33 | */ |
||
34 | public function __construct(string $apikey, string $uri = null) |
||
43 | |||
44 | final protected function getApiKey(): string |
||
48 | |||
49 | final protected function getUri(): string |
||
53 | } |
||
54 |