Passed
Push — master ( 82d9da...92dcc2 )
by Derek Stephen
03:51
created

OAuthUser   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 9
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getIdentifier() 0 3 1
1
<?php
2
3
namespace OAuth;
4
5
use Del\Entity\User as BaseUser;
6
use Doctrine\ORM\Mapping as ORM;
7
use League\OAuth2\Server\Entities\UserEntityInterface;
8
9
/**
10
 * @ORM\Entity(repositoryClass="OAuth\Repository\UserRepository")
11
 */
12
class OAuthUser extends BaseUser implements UserEntityInterface
13
{
14
15
    /**
16
     * @return int
17
     */
18 1
    public function getIdentifier()
19
    {
20 1
        return $this->getId();
21
    }
22
}