Completed
Pull Request — master (#484)
by
unknown
04:41
created

Mock::getAuthorizationEndpoint()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace OAuthTest\Mocks\OAuth1\Service;
4
5
use OAuth\OAuth1\Service\AbstractService;
6
use OAuth\Common\Http\Uri\Uri;
7
use OAuth\OAuth1\Token\StdOAuth1Token;
8
9
class Mock extends AbstractService
10
{
11
    public function getRequestTokenEndpoint()
12
    {
13
        return new Uri('http://pieterhordijk.com/token');
14
    }
15
16
    public function getAuthorizationEndpoint()
17
    {
18
        return new Uri('http://pieterhordijk.com/auth');
19
    }
20
21
    public function getAccessTokenEndpoint()
22
    {
23
        return new Uri('http://pieterhordijk.com/access');
24
    }
25
26
    protected function parseRequestTokenResponse($responseBody)
27
    {
28
        return new StdOAuth1Token();
29
    }
30
31
    protected function parseAccessTokenResponse($responseBody)
32
    {
33
        return new StdOAuth1Token();
34
    }
35
}
36