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