Completed
Push — master ( 6e52f0...d9a404 )
by Alexandre
02:29
created

InvalidGrantType   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 32
ccs 0
cts 12
cp 0
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getErrorDescription() 0 3 1
A getErrorUri() 0 3 1
A __construct() 0 5 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Alexandre
5
 * Date: 06/01/2018
6
 * Time: 18:08
7
 */
8
9
namespace OAuth2OLD\GrantType;
10
11
12
class InvalidGrantType extends \Exception
13
{
14
    /**
15
     * @var null|string
16
     */
17
    private $errorDescription;
18
    /**
19
     * @var null|string
20
     */
21
    private $errorUri;
22
23
    public function __construct(?string $errorDescription = null, ?string $errorUri = null)
24
    {
25
26
        $this->errorDescription = $errorDescription;
27
        $this->errorUri = $errorUri;
28
    }
29
30
    /**
31
     * @return null|string
32
     */
33
    public function getErrorDescription(): ?string
34
    {
35
        return $this->errorDescription;
36
    }
37
38
    /**
39
     * @return null|string
40
     */
41
    public function getErrorUri(): ?string
42
    {
43
        return $this->errorUri;
44
    }
45
}