1 | <?php |
||
22 | class AlertFactory { |
||
23 | |||
24 | /** |
||
25 | * Creates a new danger alert. |
||
26 | * |
||
27 | * @return AlertInterface Returns the danger alert. |
||
28 | */ |
||
29 | public static function newDangerAlert() { |
||
32 | |||
33 | /** |
||
34 | * Creates a new default alert. |
||
35 | * |
||
36 | * @return AlertInterface Returns the default alert. |
||
37 | */ |
||
38 | public static function newDarkAlert() { |
||
41 | |||
42 | /** |
||
43 | * Creates a new info alert. |
||
44 | * |
||
45 | * @return AlertInterface Returns the info alert. |
||
46 | */ |
||
47 | public static function newInfoAlert() { |
||
50 | |||
51 | /** |
||
52 | * Creates a new light alert. |
||
53 | * |
||
54 | * @return AlertInterface Returns the light alert. |
||
55 | */ |
||
56 | public static function newLightAlert() { |
||
59 | |||
60 | /** |
||
61 | * Creates a new primary alert. |
||
62 | * |
||
63 | * @return AlertInterface Returns the primary alert. |
||
64 | */ |
||
65 | public static function newPrimaryAlert() { |
||
68 | |||
69 | /** |
||
70 | * Creates a new secondary alert. |
||
71 | * |
||
72 | * @return AlertInterface Returns the secondary alert. |
||
73 | */ |
||
74 | public static function newSecondaryAlert() { |
||
77 | |||
78 | /** |
||
79 | * Creates a new success alert. |
||
80 | * |
||
81 | * @return AlertInterface Returns the success alert. |
||
82 | */ |
||
83 | public static function newSuccessAlert() { |
||
86 | |||
87 | /** |
||
88 | * Creates a new warning alert. |
||
89 | * |
||
90 | * @return AlertInterface Returns the warning alert. |
||
91 | */ |
||
92 | public static function newWarningAlert() { |
||
95 | |||
96 | /** |
||
97 | * Parses a alert. |
||
98 | * |
||
99 | * @param AlertInterface $alert The alert. |
||
100 | * @param array $args The arguments. |
||
101 | * @return AlertInterface Returns the alert. |
||
102 | */ |
||
103 | protected static function parseAlert(AlertInterface $alert, array $args) { |
||
110 | |||
111 | /** |
||
112 | * Parse a danger alert. |
||
113 | * |
||
114 | * @param array $args The arguments. |
||
115 | * @return AlertInterface Returns the danger alert. |
||
116 | */ |
||
117 | public static function parseDangerAlert(array $args) { |
||
120 | |||
121 | /** |
||
122 | * Parse a dark alert. |
||
123 | * |
||
124 | * @param array $args The arguments. |
||
125 | * @return AlertInterface Returns the dark alert. |
||
126 | */ |
||
127 | public static function parseDarkAlert(array $args) { |
||
130 | |||
131 | /** |
||
132 | * Parse a info alert. |
||
133 | * |
||
134 | * @param array $args The arguments. |
||
135 | * @return AlertInterface Returns the info alert. |
||
136 | */ |
||
137 | public static function parseInfoAlert(array $args) { |
||
140 | |||
141 | /** |
||
142 | * Parse a light alert. |
||
143 | * |
||
144 | * @param array $args The arguments. |
||
145 | * @return AlertInterface Returns the light alert. |
||
146 | */ |
||
147 | public static function parseLightAlert(array $args) { |
||
150 | |||
151 | /** |
||
152 | * Parse a primary alert. |
||
153 | * |
||
154 | * @param array $args The arguments. |
||
155 | * @return AlertInterface Returns the primary alert. |
||
156 | */ |
||
157 | public static function parsePrimaryAlert(array $args) { |
||
160 | |||
161 | /** |
||
162 | * Parse a secondary alert. |
||
163 | * |
||
164 | * @param array $args The arguments. |
||
165 | * @return AlertInterface Returns the secondary alert. |
||
166 | */ |
||
167 | public static function parseSecondaryAlert(array $args) { |
||
170 | |||
171 | /** |
||
172 | * Parse a success alert. |
||
173 | * |
||
174 | * @param array $args The arguments. |
||
175 | * @return AlertInterface Returns the success alert. |
||
176 | */ |
||
177 | public static function parseSuccessAlert(array $args) { |
||
180 | |||
181 | /** |
||
182 | * Parse a warning alert. |
||
183 | * |
||
184 | * @param array $args The arguments. |
||
185 | * @return AlertInterface Returns the warning alert. |
||
186 | */ |
||
187 | public static function parseWarningAlert(array $args) { |
||
190 | } |
||
191 |