User   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 16
rs 10
c 0
b 0
f 0
ccs 0
cts 4
cp 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace CodexShaper\OAuth2\Server\Entities;
4
5
use League\OAuth2\Server\Entities\Traits\EntityTrait;
6
use League\OAuth2\Server\Entities\UserEntityInterface;
7
8
class User implements UserEntityInterface
9
{
10
    use EntityTrait;
11
12
    /**
13
     * Create a new user instance.
14
     *
15
     * @param string|int $identifier
16
     *
17
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
18
     */
19
    public function __construct($identifier)
20
    {
21
        $this->setIdentifier($identifier);
22
    }
23
}
24