1 | <?php |
||
22 | class Resource extends AbstractMiddleware |
||
23 | { |
||
24 | /** |
||
25 | * The request method |
||
26 | */ |
||
27 | public $method = 'GET'; |
||
28 | |||
29 | /** |
||
30 | * The API Scheme |
||
31 | */ |
||
32 | const SCHEME = 'https'; |
||
33 | |||
34 | /** |
||
35 | * The API Host |
||
36 | */ |
||
37 | const HOST = 'api.hubapi.com'; |
||
38 | |||
39 | /** |
||
40 | * The resource path |
||
41 | */ |
||
42 | public $resource; |
||
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | public function __invoke( |
||
60 | |||
61 | /** |
||
62 | * @param RequestInterface $request |
||
63 | * @return RequestInterface |
||
64 | */ |
||
65 | protected function prepareUri(RequestInterface $request) |
||
77 | |||
78 | /** |
||
79 | * @return string |
||
80 | */ |
||
81 | protected function getPath(): string |
||
85 | } |
||
86 |