Total Complexity | 2 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
4 | class InvalidRawDataWarning extends Warning |
||
5 | { |
||
6 | protected $data; |
||
7 | |||
8 | // Redefine the exception adding an extra paramether |
||
9 | public function __construct($message, $data, $code = 0, Exception $previous = null) { |
||
|
|||
10 | $this->data = $data; |
||
11 | |||
12 | // make sure everything is assigned properly |
||
13 | parent::__construct($message, $code, $previous); |
||
14 | } |
||
15 | |||
16 | |||
17 | public function getData() { |
||
19 | } |
||
20 | } |
||
21 |