1 | <?php |
||
15 | class BasicInfoAttachment extends Attachment |
||
16 | { |
||
17 | /** |
||
18 | * @var array The data from the error handler |
||
19 | */ |
||
20 | private $record; |
||
21 | |||
22 | /** |
||
23 | * Extra error data. |
||
24 | * |
||
25 | * @var ErrorInterface |
||
26 | */ |
||
27 | private $error; |
||
28 | |||
29 | /** |
||
30 | * BasicInfoAttachment constructor. |
||
31 | * |
||
32 | * @param array $record |
||
33 | * @param ErrorInterface $error |
||
34 | */ |
||
35 | 8 | public function __construct(array $record, ErrorInterface $error = null) |
|
54 | |||
55 | /** |
||
56 | * Returned a Slack message attachment color associated with |
||
57 | * provided level. |
||
58 | * |
||
59 | * @return Colour |
||
60 | */ |
||
61 | 8 | private function getColourForLoggerLevel() |
|
74 | } |
||
75 |