Completed
Push — master ( de901a...efbe60 )
by Derek Stephen
04:42
created

Client::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace OAuth;
4
5
use League\OAuth2\Server\Entities\ClientEntityInterface;
6
7
8
class Client implements ClientEntityInterface
9
{
10
11
    /**
12
     * @var string
13
     */
14
    protected $name;
15
16
    /**
17
     * @var string|string[]
18
     */
19
    protected $redirectUri;
20
21
    /**
22
     * @var string
23
     */
24
    protected $identifier;
25
26
    /**
27
     * @return mixed
28
     */
29
    public function getIdentifier()
30
    {
31
        return $this->identifier;
32
    }
33
34
    /**
35
     * @param mixed $identifier
36
     */
37
    public function setIdentifier($identifier)
38
    {
39
        $this->identifier = $identifier;
40
    }
41
42
    /**
43
     * Get the client's name.
44
     *
45
     * @return string
46
     * @codeCoverageIgnore
47
     */
48
    public function getName()
49
    {
50
        return $this->name;
51
    }
52
53
    /**
54
     * Returns the registered redirect URI (as a string).
55
     *
56
     * Alternatively return an indexed array of redirect URIs.
57
     *
58
     * @return string|string[]
59
     */
60
    public function getRedirectUri()
61
    {
62
        return $this->redirectUri;
63
    }
64
}