| Total Complexity | 5 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 12 | class ProviderMock extends AbstractBaseProvider |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @return string |
||
| 16 | */ |
||
| 17 | public function getBaseUri() |
||
| 19 | // TODO: Implement getBaseUri() method. |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Return Provider's name |
||
| 24 | * |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | public function getName() |
||
| 28 | { |
||
| 29 | return 'fake'; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param array $requestParameters |
||
| 34 | * @return \SocialConnect\Provider\AccessTokenInterface |
||
| 35 | */ |
||
| 36 | public function getAccessTokenByRequestParameters(array $requestParameters) |
||
| 37 | { |
||
| 38 | // TODO: Implement getAccessTokenByRequestParameters() method. |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function makeAuthUrl(): string |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Get current user identity from social network by $accessToken |
||
| 52 | * |
||
| 53 | * @param AccessTokenInterface $accessToken |
||
| 54 | * @return \SocialConnect\Common\Entity\User |
||
| 55 | * |
||
| 56 | * @throws \SocialConnect\Provider\Exception\InvalidResponse |
||
| 57 | */ |
||
| 58 | public function getIdentity(AccessTokenInterface $accessToken) |
||
| 60 | // TODO: Implement getIdentity() method. |
||
| 61 | } |
||
| 63 |