Completed
Push — master ( d14457...da0e1e )
by Derek Stephen
25:25 queued 19:55
created

OAuthUser   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 9
ccs 0
cts 2
cp 0
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
    public function getIdentifier()
19
    {
20
        return $this->getId();
21
    }
22
}