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 | * Optional Query params |
||
46 | * |
||
47 | * @var array |
||
48 | */ |
||
49 | public $params = []; |
||
50 | |||
51 | /** |
||
52 | * @inheritdoc |
||
53 | */ |
||
54 | public function __invoke( |
||
67 | |||
68 | /** |
||
69 | * @param RequestInterface $request |
||
70 | * @return RequestInterface |
||
71 | */ |
||
72 | protected function prepareUri(RequestInterface $request) |
||
90 | |||
91 | /** |
||
92 | * @return string |
||
93 | */ |
||
94 | protected function getPath(): string |
||
98 | } |
||
99 |