AuthCodeTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRedirectUri() 0 3 1
A setRedirectUri() 0 3 1
1
<?php
2
3
/**
4
 * @author      Alex Bilbie <[email protected]>
5
 * @copyright   Copyright (c) Alex Bilbie
6
 * @license     http://mit-license.org/
7
 *
8
 * @link        https://github.com/thephpleague/oauth2-server
9
 */
10
11
declare(strict_types=1);
12
13
namespace League\OAuth2\Server\Entities\Traits;
14
15
trait AuthCodeTrait
16
{
17
    protected ?string $redirectUri = null;
18
19 4
    public function getRedirectUri(): string|null
20
    {
21 4
        return $this->redirectUri;
22
    }
23
24 1
    public function setRedirectUri(string $uri): void
25
    {
26 1
        $this->redirectUri = $uri;
27
    }
28
}
29