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

OAuthException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 3
dl 0
loc 4
rs 10
c 1
b 0
f 0
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
}