1 | <?php |
||
20 | class ButtonFactory { |
||
21 | |||
22 | /** |
||
23 | * Creates a new danger button. |
||
24 | * |
||
25 | * @return ButtonInterface Returns the danger button. |
||
26 | */ |
||
27 | public static function newDangerButton() { |
||
30 | |||
31 | /** |
||
32 | * Creates a new default button. |
||
33 | * |
||
34 | * @return ButtonInterface Returns the default button. |
||
35 | */ |
||
36 | public static function newDefaultButton() { |
||
39 | |||
40 | /** |
||
41 | * Creates a new info button. |
||
42 | * |
||
43 | * @return ButtonInterface Returns the info button. |
||
44 | */ |
||
45 | public static function newInfoButton() { |
||
48 | |||
49 | /** |
||
50 | * Creates a new primary button. |
||
51 | * |
||
52 | * @return ButtonInterface Returns the primary button. |
||
53 | */ |
||
54 | public static function newPrimaryButton() { |
||
57 | |||
58 | /** |
||
59 | * Creates a new success button. |
||
60 | * |
||
61 | * @return ButtonInterface Returns the success button. |
||
62 | */ |
||
63 | public static function newSuccessButton() { |
||
66 | |||
67 | /** |
||
68 | * Creates a new warning button. |
||
69 | * |
||
70 | * @return ButtonInterface Returns the warning button. |
||
71 | */ |
||
72 | public static function newWarningButton() { |
||
75 | } |
||
76 |