1 | <?php |
||
7 | class Waredesk |
||
8 | { |
||
9 | const PRODUCTION_API_URL = 'https://api.waredesk.com'; |
||
10 | |||
11 | /** |
||
12 | * @var Products |
||
13 | */ |
||
14 | public $products; |
||
15 | |||
16 | private $apiUrl; |
||
17 | private $requestHandler; |
||
18 | |||
19 | 7 | public function __construct(string $clientId, string $clientSecret, string $accessToken = null) |
|
25 | |||
26 | public function getApiUrl() |
||
30 | |||
31 | 7 | public function setApiUrl($apiUrl) |
|
36 | |||
37 | public function getClientId(): string |
||
41 | |||
42 | 1 | public function setClientId(string $clientId = null) |
|
46 | |||
47 | public function getClientSecret(): string |
||
51 | |||
52 | public function setClientSecret(string $clientSecret = null) |
||
56 | |||
57 | 2 | public function getAccessToken(): string |
|
61 | |||
62 | 7 | public function setAccessToken(string $accessToken = null) |
|
66 | |||
67 | 7 | public function setMockHandler(HandlerStack $mockHandler = null) |
|
71 | } |
||
72 |