UserEntity   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getIdentifier() 0 3 1
1
<?php
2
3
/**
4
 * @author      Alex Bilbie <[email protected]>
5
 * @copyright   Copyright (c) Alex Bilbie
6
 * @license     http://mit-license.org/
7
 *
8
 * @link        https://github.com/thephpleague/oauth2-server
9
 */
10
11
declare(strict_types=1);
12
13
namespace OAuth2ServerExamples\Entities;
14
15
use League\OAuth2\Server\Entities\UserEntityInterface;
16
17
class UserEntity implements UserEntityInterface
18
{
19
    /**
20
     * Return the user's identifier.
21
     */
22
    public function getIdentifier(): string
23
    {
24
        return '1';
25
    }
26
}
27