Completed
Push — master ( 50b5b5...bdabef )
by Derek Stephen
02:35
created

RefreshTokenRepository   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 37
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getNewRefreshToken() 0 4 1
A persistNewRefreshToken() 0 4 1
A revokeRefreshToken() 0 4 1
A isRefreshTokenRevoked() 0 4 1
1
<?php
2
3
namespace OAuth\Repository;
4
5
use Doctrine\ORM\EntityRepository;
6
use League\OAuth2\Server\Entities\RefreshTokenEntityInterface;
7
use League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface;
8
9
class RefreshTokenRepository extends EntityRepository implements RefreshTokenRepositoryInterface
10
{
11
    /**
12
     * @return mixed
13
     */
14
    public function getNewRefreshToken()
15
    {
16
        // TODO: Implement getNewRefreshToken() method.
17
    }
18
19
    /**
20
     * @param RefreshTokenEntityInterface $refreshTokenEntity
21
     * @return mixed
22
     */
23
    public function persistNewRefreshToken(RefreshTokenEntityInterface $refreshTokenEntity)
24
    {
25
        // TODO: Implement persistNewRefreshToken() method.
26
    }
27
28
    /**
29
     * @param string $tokenId
30
     * @return mixed
31
     */
32
    public function revokeRefreshToken($tokenId)
33
    {
34
        // TODO: Implement revokeRefreshToken() method.
35
    }
36
37
    /**
38
     * @param string $tokenId
39
     * @return mixed
40
     */
41
    public function isRefreshTokenRevoked($tokenId)
42
    {
43
        // TODO: Implement isRefreshTokenRevoked() method.
44
    }
45
}