| 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 | * AbstractConnection constructor. |
||
| 33 | * |
||
| 34 | * @param string $apikey |
||
| 35 | * @param string $uri |
||
| 36 | */ |
||
| 37 | public function __construct(string $apikey, string $uri = null) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | protected function getApiKey(): string |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | protected function getUri(): string |
||
| 62 | } |
||
| 63 |