| 1 | <?php |
||
| 7 | abstract class AbstractMiddleware extends \Flipbox\Relay\Middleware\AbstractMiddleware |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The URI Host |
||
| 11 | */ |
||
| 12 | const HOST = 'api.hubapi.com'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The URI Scheme |
||
| 16 | */ |
||
| 17 | const SCHEME = 'https'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The API endpoint path, after the version |
||
| 21 | * |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | abstract protected function getPath(): string; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $path |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | abstract protected function assemblePath(string $path): string; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param RequestInterface $request |
||
| 34 | * @return RequestInterface |
||
| 35 | */ |
||
| 36 | protected function prepareUri(RequestInterface $request) |
||
| 47 | } |
||
| 48 |