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