Scope::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Admin\Oauth2\Entity;
6
7
use League\OAuth2\Server\Entities\ScopeEntityInterface;
8
9
class Scope implements ScopeEntityInterface
10
{
11
    protected string $identifier;
12
13
    /**
14
     * Scope constructor.
15
     *
16
     * @param string $identifier
17
     */
18
    public function __construct(string $identifier)
19
    {
20
        $this->identifier  = $identifier;
21
    }
22
23
    /**
24
     * Get the client's identifier.
25
     *
26
     * @return string
27
     */
28
    public function getIdentifier()
29
    {
30
        return $this->identifier;
31
    }
32
33
    public function jsonSerialize()
34
    {
35
        return $this->identifier;
36
    }
37
}
38