1 | <?php |
||
15 | abstract class AbstractService implements ServiceInterface |
||
16 | { |
||
17 | /** @var CredentialsInterface */ |
||
18 | protected $credentials; |
||
19 | |||
20 | /** @var ClientInterface */ |
||
21 | protected $httpClient; |
||
22 | |||
23 | /** @var TokenStorageInterface */ |
||
24 | protected $storage; |
||
25 | |||
26 | public function __construct( |
||
35 | |||
36 | /** |
||
37 | * @param string|UriInterface $path |
||
38 | * @param UriInterface $baseApiUri |
||
39 | * |
||
40 | * @return UriInterface |
||
41 | */ |
||
42 | protected function determineRequestUriFromPath($path, ?UriInterface $baseApiUri = null) |
||
72 | |||
73 | /** |
||
74 | * Accessor to the storage adapter to be able to retrieve tokens. |
||
75 | * |
||
76 | * @return TokenStorageInterface |
||
77 | */ |
||
78 | public function getStorage() |
||
82 | |||
83 | /** |
||
84 | * @return string |
||
85 | */ |
||
86 | public function service() |
||
93 | } |
||
94 |