1 | <?php |
||
10 | class OAuth1 implements OAuth1Interface |
||
11 | { |
||
12 | /** |
||
13 | * The RequestConfigInterface instance. |
||
14 | * |
||
15 | * @var \Risan\OAuth1\Request\RequestConfigInterface |
||
16 | */ |
||
17 | protected $requestConfig; |
||
18 | |||
19 | /** |
||
20 | * The HttpClientInterface instance. |
||
21 | * |
||
22 | * @var \Risan\OAuth1\HttpClientInterface |
||
23 | */ |
||
24 | protected $httpClient; |
||
25 | |||
26 | /** |
||
27 | * The CredentialsFactoryInterface instance. |
||
28 | * |
||
29 | * @var \Risan\OAuth1\Credentials\CredentialsFactoryInterface |
||
30 | */ |
||
31 | protected $credentialsFactory; |
||
32 | |||
33 | /** |
||
34 | * Create a new OAuth1 instance. |
||
35 | * |
||
36 | * @param \Risan\OAuth1\Request\RequestConfigInterface $requestConfig |
||
37 | * @param \Risan\OAuth1\HttpClientInterface $httpClient |
||
38 | * @param \Risan\OAuth1\Credentials\CredentialsFactoryInterface $credentialsFactory |
||
39 | */ |
||
40 | 7 | public function __construct(RequestConfigInterface $requestConfig, HttpClientInterface $httpClient, CredentialsFactoryInterface $credentialsFactory) |
|
46 | |||
47 | /** |
||
48 | * {@inheritDoc} |
||
49 | */ |
||
50 | 1 | public function getRequestConfig() |
|
54 | |||
55 | /** |
||
56 | * {@inheritDoc} |
||
57 | */ |
||
58 | 1 | public function getHttpClient() |
|
62 | |||
63 | /** |
||
64 | * {@inheritDoc} |
||
65 | */ |
||
66 | 1 | public function getCredentialsFactory() |
|
67 | { |
||
68 | 1 | return $this->credentialsFactory; |
|
69 | } |
||
70 | |||
71 | /** |
||
72 | * {@inheritDoc} |
||
73 | */ |
||
74 | 1 | public function getTemporaryCredentials() |
|
84 | |||
85 | /** |
||
86 | * {@inheritDoc} |
||
87 | */ |
||
88 | 1 | public function buildAuthorizationUrl(TemporaryCredentials $temporaryCredentials) |
|
92 | } |
||
93 |