| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace GeneaLabs\LaravelMessenger; |
||
| 25 | public function send( |
||
| 26 | string $text, |
||
| 27 | string $title = null, |
||
| 28 | string $level = null, |
||
| 29 | bool $autoHide = null, |
||
| 30 | string $framework = null, |
||
| 31 | string $type = null |
||
| 32 | ) { |
||
| 33 | $message = new Message([ |
||
| 34 | 'message' => $text, |
||
| 35 | 'title' => $title, |
||
| 36 | 'level' => $level, |
||
| 37 | 'autoHide' => $autoHide, |
||
| 38 | 'framework' => $framework, |
||
| 39 | 'type' => $type, |
||
| 40 | ]); |
||
| 41 | |||
| 42 | if ($text) { |
||
| 43 | session(['genealabs-laravel-messenger.message' => $message]); |
||
| 44 | } |
||
| 47 |