1 | <?php |
||
20 | class ToastFactory { |
||
21 | |||
22 | /** |
||
23 | * Creates a danger toast. |
||
24 | * |
||
25 | * @param string $content The content. |
||
26 | * @return ToastInterface Returns the danger toast. |
||
27 | */ |
||
28 | public static function newDangerToast($content) { |
||
31 | |||
32 | /** |
||
33 | * Creates a default toast. |
||
34 | * |
||
35 | * @param string $content The content. |
||
36 | * @param string $type The type. |
||
37 | * @return ToastInterface Returns the default toast. |
||
38 | */ |
||
39 | public static function newDefaultToast($content, $type) { |
||
42 | |||
43 | /** |
||
44 | * Creates a info toast. |
||
45 | * |
||
46 | * @param string $content The content. |
||
47 | * @return ToastInterface Returns the info toast. |
||
48 | */ |
||
49 | public static function newInfoToast($content) { |
||
52 | |||
53 | /** |
||
54 | * Creates a success toast. |
||
55 | * |
||
56 | * @param string $content The content. |
||
57 | * @return ToastInterface Returns the success toast. |
||
58 | */ |
||
59 | public static function newSuccessToast($content) { |
||
62 | |||
63 | /** |
||
64 | * Creates a warning toast. |
||
65 | * |
||
66 | * @param string $content The content. |
||
67 | * @return ToastInterface Returns the warning toast. |
||
68 | */ |
||
69 | public static function newWarningToast($content) { |
||
72 | } |
||
73 |