| 1 | <?php |
||
| 17 | class BasicInfoAttachment extends Attachment |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var array The data from the error handler |
||
| 21 | */ |
||
| 22 | private $record; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Extra error data. |
||
| 26 | * |
||
| 27 | * @var ErrorInterface |
||
| 28 | */ |
||
| 29 | private $error; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * BasicInfoAttachment constructor. |
||
| 33 | * |
||
| 34 | * @param array $record |
||
| 35 | * @param ErrorInterface $error |
||
| 36 | */ |
||
| 37 | 8 | public function __construct(array $record, ErrorInterface $error = null) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * Returned a Slack message attachment color associated with |
||
| 50 | * provided level. |
||
| 51 | * |
||
| 52 | * @return Colour |
||
| 53 | */ |
||
| 54 | 8 | private function getColour() |
|
| 67 | } |
||
| 68 |