Passed
Push — master ( 273c7d...4c8747 )
by ma
02:37
created

OAuthException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 13
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRaw() 0 3 1
1
<?php
2
namespace tinymeng\OAuth2\Exception;
3
4
use Exception;
5
6
class OAuthException extends Exception
7
{
8
    protected $raw;
9
10
    public function __construct($message, $code = 0, $raw = null)
11
    {
12
        parent::__construct($message, $code);
13
        $this->raw = $raw;
14
    }
15
16
    public function getRaw()
17
    {
18
        return $this->raw;
19
    }
20
}