AuthorizationServerException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 28
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getErrorCode() 0 4 1
1
<?php
2
3
namespace Phisch\OAuth\Server\Exception;
4
5
use Exception;
6
7
class AuthorizationServerException extends \Exception
8
{
9
    /**
10
     * @var string
11
     */
12
    private $errorCode;
13
14
    /**
15
     * @param string $message
16
     * @param int $code
17
     * @param Exception $previous
18
     * @param string $errorCode
19
     */
20
    public function __construct($message = "", $code = 0, Exception $previous = null, $errorCode = "")
21
    {
22
        $this->errorCode = $errorCode;
23
24
        parent::__construct($message, $code, $previous);
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getErrorCode()
31
    {
32
        return $this->errorCode;
33
    }
34
}
35