Passed
Push — master ( c11190...b979a3 )
by ma
03:25
created

TException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRaw() 0 3 1
1
<?php
2
namespace tinymeng\Chinaums\Exception;
3
4
use Exception;
5
6
class TException 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
}