Completed
Push — develop ( 6fd965...1bc1b2 )
by Christoffer
02:13
created

MockRefreshTokenStorage   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 25
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A get() 0 4 1
A create() 0 4 1
A delete() 0 3 1
1
<?php
2
3
namespace Nord\Lumen\OAuth2\Tests;
4
5
use League\OAuth2\Server\Entity\RefreshTokenEntity;
6
use League\OAuth2\Server\Storage\RefreshTokenInterface;
7
8
class MockRefreshTokenStorage extends MockStorage implements RefreshTokenInterface
9
{
10
    /**
11
     * @inheritdoc
12
     */
13
    public function get($token)
14
    {
15
        return null;
16
    }
17
18
    /**
19
     * @inheritdoc
20
     */
21
    public function create($token, $expireTime, $accessToken)
22
    {
23
        return null;
24
    }
25
26
    /**
27
     * @inheritdoc
28
     */
29
    public function delete(RefreshTokenEntity $token)
30
    {
31
    }
32
}
33