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

AuthCodeTrait::getRedirectUri()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
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