RedirectUriProviderTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRedirectUri() 0 4 1
A setRedirectUri() 0 4 1
1
<?php
2
/**
3
 * @author Stefano Torresi (http://stefanotorresi.it)
4
 * @license See the file LICENSE.txt for copying permission.
5
 * ************************************************
6
 */
7
8
namespace Thorr\OAuth2\Entity;
9
10
trait RedirectUriProviderTrait
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $redirectUri;
16
17
    /**
18
     * @return string
19
     */
20
    public function getRedirectUri()
21
    {
22
        return $this->redirectUri;
23
    }
24
25
    /**
26
     * @param string $redirectUri
27
     */
28
    public function setRedirectUri($redirectUri)
29
    {
30
        $this->redirectUri = (string) $redirectUri;
31
    }
32
}
33