Completed
Push — master ( a9822c...8aa0e0 )
by Derek Stephen
14:27
created

OAuthUser::getIdentifier()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 0
cts 4
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
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
}