1 | <?php |
||
41 | class Message extends Model |
||
42 | { |
||
43 | /** |
||
44 | * Gitter mapper |
||
45 | */ |
||
46 | use MessageMapperTrait; |
||
47 | |||
48 | /** |
||
49 | * @param $value |
||
50 | * @return Carbon |
||
51 | */ |
||
52 | public function getUpdatedAtAttribute($value) |
||
60 | |||
61 | /** |
||
62 | * @param callable $cb |
||
63 | * @return bool |
||
64 | */ |
||
65 | public function hasMention(callable $cb) |
||
74 | |||
75 | /** |
||
76 | * @return mixed|string |
||
77 | */ |
||
78 | public function getEscapedTextAttribute() |
||
87 | |||
88 | /** |
||
89 | * @return mixed|string |
||
90 | */ |
||
91 | public function getTextWithoutSpecialCharsAttribute() |
||
100 | |||
101 | /** |
||
102 | * @param $text |
||
103 | * @return $this |
||
104 | */ |
||
105 | public function answer($text) |
||
118 | |||
119 | /** |
||
120 | * @param $text |
||
121 | * @return Model |
||
122 | */ |
||
123 | public function pre($text) |
||
127 | |||
128 | /** |
||
129 | * @param $code |
||
130 | * @param string $lang |
||
131 | * @return Model |
||
132 | */ |
||
133 | public function code($code, $lang = '') |
||
139 | |||
140 | /** |
||
141 | * @param $text |
||
142 | * @return Model |
||
143 | */ |
||
144 | public function italic($text) |
||
148 | |||
149 | /** |
||
150 | * @param $text |
||
151 | * @return Model |
||
152 | */ |
||
153 | public function bold($text) |
||
157 | |||
158 | /** |
||
159 | * @param $symbol |
||
160 | * @param $text |
||
161 | * @return string |
||
162 | */ |
||
163 | protected function decorate($symbol, $text) |
||
176 | } |
||
177 |