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

ClientTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 1 Features 1
Metric Value
wmc 2
c 2
b 1
f 1
lcom 0
cbo 0
dl 0
loc 29
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A getRedirectUri() 0 4 1
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