1 | <?php |
||
22 | class AbstractExceptionNormalizer |
||
23 | { |
||
24 | /** |
||
25 | * @var ExceptionValueMap |
||
26 | */ |
||
27 | private $messagesMap; |
||
28 | |||
29 | /** |
||
30 | * @var bool |
||
31 | */ |
||
32 | private $debug; |
||
33 | |||
34 | /** |
||
35 | * @param array $messagesMap |
||
36 | * @param bool $debug |
||
37 | */ |
||
38 | 11 | public function __construct(ExceptionValueMap $messagesMap, $debug) |
|
43 | |||
44 | /** |
||
45 | * Extracts the exception message. |
||
46 | * |
||
47 | * @param \Exception $exception |
||
48 | * @param int|null $statusCode |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | 6 | protected function getExceptionMessage(\Exception $exception, $statusCode = null) |
|
62 | } |
||
63 |