Completed
Push — master ( a9ae05...9e23ea )
by Derek Stephen
02:50
created

AuthCodeRepository   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 37
ccs 0
cts 8
cp 0
rs 10

4 Methods

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