Passed
Push — master ( 1d30f9...202808 )
by Peter
04:48
created

Scope   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 5
dl 0
loc 28
rs 10
c 0
b 0
f 0

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\ClientEntityInterface;
0 ignored issues
show
Bug introduced by
The type League\OAuth2\Server\Ent...s\ClientEntityInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
use League\OAuth2\Server\Entities\ScopeEntityInterface;
0 ignored issues
show
Bug introduced by
The type League\OAuth2\Server\Entities\ScopeEntityInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
10
class Scope implements ScopeEntityInterface
11
{
12
    /** @var string */
13
    protected $identifier;
14
15
    /**
16
     * Scope constructor.
17
     *
18
     * @param string $identifier
19
     */
20
    public function __construct(string $identifier)
21
    {
22
        $this->identifier  = $identifier;
23
    }
24
25
    /**
26
     * Get the client's identifier.
27
     *
28
     * @return string
29
     */
30
    public function getIdentifier()
31
    {
32
        return $this->identifier;
33
    }
34
35
    public function jsonSerialize()
36
    {
37
        return $this->identifier;
38
    }
39
}
40