Total Complexity | 4 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | class ErrorCatcher |
||
13 | { |
||
14 | /** |
||
15 | * @var null|array |
||
16 | */ |
||
17 | private $last; |
||
18 | |||
19 | /** |
||
20 | * @var null|array |
||
21 | */ |
||
22 | private $previous; |
||
23 | |||
24 | /** |
||
25 | * @var int |
||
26 | */ |
||
27 | private $level; |
||
28 | |||
29 | 3 | public function __construct() |
|
32 | 3 | } |
|
33 | |||
34 | /** |
||
35 | * @return ErrorCatcher |
||
36 | */ |
||
37 | 1 | public static function create() |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return bool an error occured between start and end |
||
44 | */ |
||
45 | 2 | public function end() |
|
52 | } |
||
53 | |||
54 | /** |
||
55 | * start catching session (is auto-started on create) |
||
56 | */ |
||
57 | 3 | private function start() |
|
64 |