Scope   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 5
c 1
b 0
f 0
dl 0
loc 27
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getIdentifier() 0 3 1
A jsonSerialize() 0 3 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