Conditions | 4 |
Paths | 8 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function __construct($message, $type, $data = null, $code = 0) { |
||
33 | if ($type !== null) { |
||
34 | $this->type = $type; |
||
35 | } |
||
36 | |||
37 | if ($code !== null) { |
||
38 | $this->code = $code; |
||
39 | } |
||
40 | |||
41 | if ($message !== null) { |
||
42 | $this->reason = $message; |
||
43 | } |
||
44 | |||
45 | $message = sprintf('%d %s', $this->code, $this->reason); |
||
46 | parent::__construct($message, $this->type, $data, $this->code); |
||
47 | } |
||
48 | |||
57 |