1 | <?php |
||
7 | class Config implements ConfigInterface |
||
8 | { |
||
9 | /** |
||
10 | * The ClientCredentials instance. |
||
11 | * |
||
12 | * @var \Risan\OAuth1\Credentials\ClientCredentials |
||
13 | */ |
||
14 | protected $clientCredentials; |
||
15 | |||
16 | /** |
||
17 | * The UriConfigInterface instance. |
||
18 | * |
||
19 | * @var \Risan\OAuth1\Config\UriConfigInterface |
||
20 | */ |
||
21 | protected $uri; |
||
22 | |||
23 | /** |
||
24 | * Create new instance of Config class. |
||
25 | * |
||
26 | * @param \Risan\OAuth1\Credentials\ClientCredentials $clientCredentials |
||
27 | * @param \Risan\OAuth1\Config\UriConfigInterface $uri |
||
28 | */ |
||
29 | public function __construct(ClientCredentials $clientCredentials, UriConfigInterface $uri) |
||
34 | |||
35 | /** |
||
36 | * {@inheritDoc} |
||
37 | */ |
||
38 | public function getClientCredentials() |
||
42 | |||
43 | /** |
||
44 | * {@inheritDoc} |
||
45 | */ |
||
46 | public function getClientCredentialsIdentifier() |
||
50 | |||
51 | /** |
||
52 | * {@inheritDoc} |
||
53 | */ |
||
54 | public function getClientCredentialsSecret() |
||
58 | |||
59 | /** |
||
60 | * {@inheritDoc} |
||
61 | */ |
||
62 | public function getUri() |
||
66 | |||
67 | /** |
||
68 | * {@inheritDoc} |
||
69 | */ |
||
70 | public function getTemporaryCredentialsUri() |
||
74 | |||
75 | /** |
||
76 | * {@inheritDoc} |
||
77 | */ |
||
78 | public function getAuthorizationUri() |
||
82 | |||
83 | /** |
||
84 | * {@inheritDoc} |
||
85 | */ |
||
86 | public function getTokenCredentialsUri() |
||
90 | |||
91 | /** |
||
92 | * {@inheritDoc} |
||
93 | */ |
||
94 | public function getCallbackUri() |
||
98 | |||
99 | /** |
||
100 | * {@inheritDoc} |
||
101 | */ |
||
102 | public function hasCallbackUri() |
||
106 | } |
||
107 |