Total Complexity | 5 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Toast |
||
8 | { |
||
9 | public function danger(string $message, string $title = null): Notification |
||
12 | } |
||
13 | |||
14 | public function debug(string $message, string $title = null): Notification |
||
15 | { |
||
16 | return new Notification($message, $title, NotificationType::$debug); |
||
17 | } |
||
18 | |||
19 | public function info(string $message, string $title = null): Notification |
||
20 | { |
||
21 | return new Notification($message, $title, NotificationType::$info); |
||
22 | } |
||
23 | |||
24 | public function success(string $message, string $title = null): Notification |
||
25 | { |
||
26 | return new Notification($message, $title, NotificationType::$success); |
||
27 | } |
||
28 | |||
29 | public function warning(string $message, string $title = null): Notification |
||
32 | } |
||
33 | } |
||
34 |