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

ProviderMock::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
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