Passed
Pull Request — master (#1122)
by Sebastian
02:02
created

AuthCodeTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 21
ccs 0
cts 7
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRedirectUri() 0 3 1
A setRedirectUri() 0 3 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|null
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