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

AuthCodeTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRedirectUri() 0 4 1
A setRedirectUri() 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 AuthCodeTrait
13
{
14
    /**
15
     * @var null|string
16
     */
17
    protected $redirectUri;
18
19
    /**
20
     * @return string
21
     */
22
    public function getRedirectUri()
23
    {
24
        return $this->redirectUri;
25
    }
26
27
    /**
28
     * @param string $uri
29
     */
30
    public function setRedirectUri($uri)
31
    {
32
        $this->redirectUri = $uri;
33
    }
34
}
35