1 | <?php |
||
27 | class NotificationFactory { |
||
28 | |||
29 | /** |
||
30 | * Create a danger notification. |
||
31 | * |
||
32 | * @param string $content The content. |
||
33 | * @return NotificationInterface Returns the danger notification. |
||
34 | */ |
||
35 | public static function newDangerNotification($content) { |
||
38 | |||
39 | /** |
||
40 | * Create a default notification. |
||
41 | * |
||
42 | * @param string $content The content. |
||
43 | * @param string $type The type. |
||
44 | * @return NotificationInterface Returns the default notification. |
||
45 | */ |
||
46 | public static function newDefaultNotification($content, $type) { |
||
49 | |||
50 | /** |
||
51 | * Create a info notification. |
||
52 | * |
||
53 | * @param string $content The content. |
||
54 | * @return NotificationInterface Returns the info notification. |
||
55 | */ |
||
56 | public static function newInfoNotification($content) { |
||
59 | |||
60 | /** |
||
61 | * Create a success notification. |
||
62 | * |
||
63 | * @param string $content The content. |
||
64 | * @return NotificationInterface Returns the success notification. |
||
65 | */ |
||
66 | public static function newSuccessNotification($content) { |
||
69 | |||
70 | /** |
||
71 | * Create a warning notification. |
||
72 | * |
||
73 | * @param string $content The content. |
||
74 | * @return NotificationInterface Returns the warning notification. |
||
75 | */ |
||
76 | public static function newWarningNotification($content) { |
||
79 | |||
80 | } |
||
81 |