1 | <?php |
||
22 | class ButtonFactory { |
||
23 | |||
24 | /** |
||
25 | * Creates a new danger button. |
||
26 | * |
||
27 | * @return ButtonInterface Returns the danger button. |
||
28 | */ |
||
29 | public static function newDangerButton() { |
||
32 | |||
33 | /** |
||
34 | * Creates a new default button. |
||
35 | * |
||
36 | * @return ButtonInterface Returns the default button. |
||
37 | */ |
||
38 | public static function newDefaultButton() { |
||
41 | |||
42 | /** |
||
43 | * Creates a new info button. |
||
44 | * |
||
45 | * @return ButtonInterface Returns the info button. |
||
46 | */ |
||
47 | public static function newInfoButton() { |
||
50 | |||
51 | /** |
||
52 | * Creates a new primary button. |
||
53 | * |
||
54 | * @return ButtonInterface Returns the primary button. |
||
55 | */ |
||
56 | public static function newPrimaryButton() { |
||
59 | |||
60 | /** |
||
61 | * Creates a new success button. |
||
62 | * |
||
63 | * @return ButtonInterface Returns the success button. |
||
64 | */ |
||
65 | public static function newSuccessButton() { |
||
68 | |||
69 | /** |
||
70 | * Creates a new warning button. |
||
71 | * |
||
72 | * @return ButtonInterface Returns the warning button. |
||
73 | */ |
||
74 | public static function newWarningButton() { |
||
77 | |||
78 | /** |
||
79 | * Parse a danger button. |
||
80 | * |
||
81 | * @param array $args The arguments. |
||
82 | * @return ButtonInterface Returns the danger button. |
||
83 | */ |
||
84 | public static function parseDangerButton(array $args) { |
||
99 | |||
100 | /** |
||
101 | * Parse a default button. |
||
102 | * |
||
103 | * @param array $args The arguments. |
||
104 | * @return ButtonInterface Returns the default button. |
||
105 | */ |
||
106 | public static function parseDefaultButton(array $args) { |
||
121 | |||
122 | /** |
||
123 | * Parse a info button. |
||
124 | * |
||
125 | * @param array $args The arguments. |
||
126 | * @return ButtonInterface Returns the info button. |
||
127 | */ |
||
128 | public static function parseInfoButton(array $args) { |
||
143 | |||
144 | /** |
||
145 | * Parse a primary button. |
||
146 | * |
||
147 | * @param array $args The arguments. |
||
148 | * @return ButtonInterface Returns the primary button. |
||
149 | */ |
||
150 | public static function parsePrimaryButton(array $args) { |
||
165 | |||
166 | /** |
||
167 | * Parse a success button. |
||
168 | * |
||
169 | * @param array $args The arguments. |
||
170 | * @return ButtonInterface Returns the success button. |
||
171 | */ |
||
172 | public static function parseSuccessButton(array $args) { |
||
187 | |||
188 | /** |
||
189 | * Parse a warning button. |
||
190 | * |
||
191 | * @param array $args The arguments. |
||
192 | * @return ButtonInterface Returns the warning button. |
||
193 | */ |
||
194 | public static function parseWarningButton(array $args) { |
||
209 | } |
||
210 |