Completed
Push — master ( 1de13c...bf55ce )
by Alex
33:38
created

ClientTrait::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * @author      Alex Bilbie <[email protected]>
4
 * @copyright   Copyright (c) Alex Bilbie
5
 * @license     http://mit-license.org/
6
 *
7
 * @link        https://github.com/thephpleague/oauth2-server
8
 */
9
10
namespace League\OAuth2\Server\Entities\Traits;
11
12
trait ClientTrait
13
{
14
    protected $name;
15
16
    protected $redirectUri;
17
18
    /**
19
     * Get the client's name.
20
     *
21
     * @return string
22
     * @codeCoverageIgnore
23
     */
24
    public function getName()
25
    {
26
        return $this->name;
27
    }
28
29
    /**
30
     * Returns the registered redirect URI (as a string).
31
     *
32
     * Alternatively return an indexed array of redirect URIs.
33
     *
34
     * @return string|string[]
35
     */
36
    public function getRedirectUri()
37
    {
38
        return $this->redirectUri;
39
    }
40
}
41