1 | <?php |
||
8 | class DefaultErrorFormatter implements ErrorFormatter |
||
9 | { |
||
10 | /** |
||
11 | * @var bool |
||
12 | */ |
||
13 | protected $isDebug; |
||
14 | |||
15 | /** |
||
16 | * @param bool $isDebug |
||
17 | */ |
||
18 | 39 | public function __construct($isDebug = true) |
|
22 | |||
23 | /** |
||
24 | * @param Error $error |
||
25 | * |
||
26 | * @return \stdClass |
||
27 | */ |
||
28 | public function formatError(Error $error) |
||
45 | |||
46 | /** |
||
47 | * @param \Exception $exception |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | protected function buildDebugData(\Exception $exception) |
||
71 | } |
||
72 |