Total Complexity | 5 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | class DigitalOcean extends \SocialConnect\OAuth2\AbstractProvider |
||
15 | { |
||
16 | const NAME = 'digital-ocean'; |
||
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | 4 | public function getBaseUri() |
|
22 | { |
||
23 | 4 | return 'https://api.digitalocean.com/v2/'; |
|
24 | } |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | 2 | public function getAuthorizeUri() |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 2 | public function getRequestTokenUri() |
|
38 | { |
||
39 | 2 | return 'https://cloud.digitalocean.com/v1/oauth/token'; |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | 3 | public function getName() |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | 3 | public function getIdentity(AccessTokenInterface $accessToken) |
|
64 |