1 | <?php |
||
15 | class TraceAttachment extends Attachment |
||
16 | { |
||
17 | /** |
||
18 | * Extra error data. |
||
19 | * |
||
20 | * @var ErrorInterface |
||
21 | */ |
||
22 | private $error; |
||
23 | |||
24 | /** |
||
25 | * @var StringFormat |
||
26 | */ |
||
27 | private $formatter; |
||
28 | |||
29 | /** |
||
30 | * TraceAttachment constructor. |
||
31 | * |
||
32 | * @param ErrorInterface $error |
||
33 | * @param StringFormat $formatter |
||
34 | */ |
||
35 | 6 | public function __construct(ErrorInterface $error, StringFormat $formatter) |
|
53 | |||
54 | /** |
||
55 | * Parse all the data into the markup of slack. |
||
56 | * |
||
57 | * @param array $traceItem |
||
58 | * |
||
59 | * @return string |
||
60 | */ |
||
61 | 6 | private function parseTraceItem(array $traceItem) |
|
75 | |||
76 | /** |
||
77 | * @param array $array |
||
78 | * @param string $key |
||
79 | * @param mixed|null $fallback |
||
80 | * |
||
81 | * @return mixed |
||
82 | */ |
||
83 | 6 | private function getArrayValue(array $array, $key, $fallback = null) |
|
87 | } |
||
88 |