Completed
Push — master ( 4c45e0...1a7b7a )
by Дмитрий
02:22
created

ProviderMock   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 5
eloc 3
dl 0
loc 48
rs 10
c 2
b 1
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getBaseUri() 0 2 1
A makeAuthUrl() 0 4 1
A getName() 0 3 1
A getIdentity() 0 2 1
A getAccessTokenByRequestParameters() 0 2 1
1
<?php
2
/**
3
 * @author Patsura Dmitry https://github.com/ovr <[email protected]>
4
 */
5
declare(strict_types=1);
6
7
namespace Test\Provider;
8
9
use SocialConnect\Provider\AbstractBaseProvider;
10
use SocialConnect\Provider\AccessTokenInterface;
11
12
class ProviderMock extends AbstractBaseProvider
13
{
14
    /**
15
     * @return string
16
     */
17
    public function getBaseUri()
18
    {
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
45
    {
46
        // TODO: Implement makeAuthUrl() method.
47
        return '';
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)
59
    {
60
        // TODO: Implement getIdentity() method.
61
    }
62
}
63