User::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Rinvex\Oauth\Bridge;
6
7
use League\OAuth2\Server\Entities\Traits\EntityTrait;
8
use League\OAuth2\Server\Entities\UserEntityInterface;
9
10
class User implements UserEntityInterface
11
{
12
    use EntityTrait;
13
14
    /**
15
     * Create a new user instance.
16
     *
17
     * @param string|int $identifier
18
     *
19
     * @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...
20
     */
21
    public function __construct($identifier)
22
    {
23
        $this->setIdentifier($identifier);
24
    }
25
}
26