@@ -161,9 +161,6 @@ discard block |
||
161 | 161 | * |
162 | 162 | * @param string $type Could be error, info, success, or warning. |
163 | 163 | * @param string $text The notification's message |
164 | - * @param string $title The notification's title |
|
165 | - * @param array $options |
|
166 | - * @param bool $onlyNextRequest if true(default), se the notification in session only for the next request |
|
167 | 164 | * |
168 | 165 | */ |
169 | 166 | public function add($theme, $timeout, $type, $layout, $text, $sounds = null, $soundsVolume = null) |
@@ -193,6 +190,9 @@ discard block |
||
193 | 190 | $this->notifications[] = $notification; |
194 | 191 | } |
195 | 192 | |
193 | + /** |
|
194 | + * @param string $type |
|
195 | + */ |
|
196 | 196 | public function addForNextRequest($theme, $timeout, $type, $layout, $text, $sounds = null, $soundsVolume = null) |
197 | 197 | { |
198 | 198 | if ($type == '') { |
@@ -230,8 +230,6 @@ discard block |
||
230 | 230 | /** |
231 | 231 | * Shortcut for adding an info notification |
232 | 232 | * |
233 | - * @param string $message The notification's message |
|
234 | - * @param string $title The notification's title |
|
235 | 233 | * @param array $options |
236 | 234 | */ |
237 | 235 | public function info($text, $onlyNextRequest = false, array $options = []) |
@@ -249,8 +247,6 @@ discard block |
||
249 | 247 | /** |
250 | 248 | * Shortcut for adding an error notification |
251 | 249 | * |
252 | - * @param string $message The notification's message |
|
253 | - * @param string $title The notification's title |
|
254 | 250 | * @param array $options |
255 | 251 | */ |
256 | 252 | public function error($text, $onlyNextRequest = false, array $options = []) |
@@ -268,8 +264,6 @@ discard block |
||
268 | 264 | /** |
269 | 265 | * Shortcut for adding a warning notification |
270 | 266 | * |
271 | - * @param string $message The notification's message |
|
272 | - * @param string $title The notification's title |
|
273 | 267 | * @param array $options |
274 | 268 | */ |
275 | 269 | public function warning($text, $onlyNextRequest = false, array $options = []) |
@@ -287,8 +281,6 @@ discard block |
||
287 | 281 | /** |
288 | 282 | * Shortcut for adding a success notification |
289 | 283 | * |
290 | - * @param string $message The notification's message |
|
291 | - * @param string $title The notification's title |
|
292 | 284 | * @param array $options |
293 | 285 | */ |
294 | 286 | public function success($text, $onlyNextRequest = false, array $options = []) |
@@ -307,7 +299,6 @@ discard block |
||
307 | 299 | /** |
308 | 300 | * Clear all notifications |
309 | 301 | * |
310 | - * @param bool $withSession if true (default) clean notifications in session too. |
|
311 | 302 | */ |
312 | 303 | public function clear() |
313 | 304 | { |