1 | <?php |
||
18 | trait SlackTrait |
||
19 | { |
||
20 | /** |
||
21 | * make text bold. |
||
22 | * |
||
23 | * @param $string |
||
24 | * |
||
25 | * @return string |
||
26 | */ |
||
27 | 22 | protected function bold($string) : string |
|
31 | |||
32 | /** |
||
33 | * make text italic. |
||
34 | * |
||
35 | * @param $string |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | 7 | protected function italic($string) : string |
|
43 | |||
44 | /** |
||
45 | * build a review line. |
||
46 | * |
||
47 | * @param \stdClass $item the review item |
||
48 | * |
||
49 | * @return string |
||
50 | */ |
||
51 | 3 | protected function buildReviewLine($item) : string |
|
56 | |||
57 | /** |
||
58 | * @param $item |
||
59 | * |
||
60 | * @return string |
||
61 | */ |
||
62 | 6 | protected function buildIssueMessage($item) : string |
|
78 | |||
79 | /** |
||
80 | * @param string $text |
||
81 | * @param string $channel |
||
82 | * |
||
83 | * @return array |
||
84 | */ |
||
85 | 5 | protected function getBaseDataArray(string $text, string $channel) : array |
|
95 | |||
96 | /** |
||
97 | * @param Attachment $attachment |
||
98 | * |
||
99 | * @return DataObject |
||
100 | */ |
||
101 | 4 | protected function buildAttachment(Attachment $attachment) : DataObject |
|
117 | } |
||
118 |