1 | <?php |
||
8 | class Client implements \ArrayAccess, ClientInterface |
||
9 | { |
||
10 | protected static $defaultOptions = [ |
||
11 | CURLOPT_CONNECTTIMEOUT => 10, |
||
12 | CURLOPT_TIMEOUT => 20, |
||
13 | CURLOPT_ENCODING => 'gzip', |
||
14 | ]; |
||
15 | |||
16 | protected $credential; |
||
17 | protected $options; |
||
18 | protected $curl; |
||
19 | |||
20 | use \mpyw\Cowitter\Traits\BaseClientTrait; |
||
21 | use \mpyw\Cowitter\Traits\AuthenticatorTrait; |
||
22 | use \mpyw\Cowitter\Traits\RequestorTrait; |
||
23 | use \mpyw\Cowitter\Traits\UploaderTrait; |
||
24 | use \mpyw\Cowitter\Traits\OAuth2ClientTrait; |
||
25 | |||
26 | 6 | protected function getInternalCredential() |
|
30 | |||
31 | 6 | protected function getInternalOptions() |
|
35 | |||
36 | 6 | protected function getInternalCurl() |
|
40 | |||
41 | 6 | protected function setInternalCredential(Credential $credential) |
|
45 | |||
46 | 6 | protected function setInternalOptions(array $options) |
|
50 | |||
51 | 6 | protected function setInternalCurl(CurlInitializer $curl) |
|
55 | } |
||
56 |