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

Client   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 10
dl 0
loc 55
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getIdentifier() 0 3 1
A getName() 0 3 1
A getRedirectUri() 0 3 1
A __construct() 0 5 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
9
class Client implements ClientEntityInterface
10
{
11
    /** @var string */
12
    protected $identifier;
13
14
    /** @var string */
15
    protected $name;
16
17
    /** @var string */
18
    protected $redirectUri;
19
20
    /**
21
     * Client constructor.
22
     *
23
     * @param string $identifier
24
     * @param string $name
25
     * @param string $redirectUri
26
     */
27
    public function __construct(string $identifier, string $name, string $redirectUri)
28
    {
29
        $this->identifier  = $identifier;
30
        $this->name        = $name;
31
        $this->redirectUri = $redirectUri;
32
    }
33
34
    /**
35
     * Get the client's identifier.
36
     *
37
     * @return string
38
     */
39
    public function getIdentifier()
40
    {
41
        return $this->identifier;
42
    }
43
44
    /**
45
     * Get the client's name.
46
     *
47
     * @return string
48
     */
49
    public function getName()
50
    {
51
        return $this->name;
52
    }
53
54
    /**
55
     * Returns the registered redirect URI (as a string).
56
     *
57
     * Alternatively return an indexed array of redirect URIs.
58
     *
59
     * @return string|string[]
60
     */
61
    public function getRedirectUri()
62
    {
63
        return $this->redirectUri;
64
    }
65
}
66