1 | <?php |
||
15 | class ParametersAttachment 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 | * @param ErrorInterface $error |
||
31 | * @param StringFormat $formatter |
||
32 | */ |
||
33 | 6 | public function __construct(ErrorInterface $error, StringFormat $formatter) |
|
45 | |||
46 | /** |
||
47 | * Parse all the data into the markup of slack. |
||
48 | * |
||
49 | * @param mixed $parameter |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | 6 | private function parseParameter($parameter) |
|
61 | |||
62 | /** |
||
63 | * @param array $parameter |
||
64 | * |
||
65 | * @return string |
||
66 | */ |
||
67 | 6 | private function parseArrayParameter(array $parameter) |
|
78 | } |
||
79 |