| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 92.31% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | abstract class AbstractEndpoint |
||
| 12 | { |
||
| 13 | protected Auth $auth; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * AbstractEndpoint constructor. |
||
| 17 | * |
||
| 18 | * @param Auth $auth |
||
| 19 | */ |
||
| 20 | 10 | public function __construct(Auth $auth) |
|
| 21 | { |
||
| 22 | 10 | $this->auth = $auth; |
|
| 23 | } |
||
| 24 | |||
| 25 | abstract public function baseUrl(): string; |
||
| 26 | |||
| 27 | abstract public function key(): string; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return PendingRequest |
||
| 31 | * @throws WorkcastException |
||
| 32 | */ |
||
| 33 | 6 | public function httpClient(): PendingRequest |
|
| 48 | 5 | ] |
|
| 49 | 5 | )); |
|
| 52 |