Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
17 | class BootstrapWidgets implements WidgetsRegistryBase |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Method returns widget |
||
22 | * |
||
23 | * @param string $name |
||
24 | * name of the widget |
||
25 | * @return string widget's HTML code |
||
26 | */ |
||
27 | public function getWidget(string $name): string |
||
28 | { |
||
29 | return BootstrapWidgets::get($name); |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Method returns widget |
||
34 | * |
||
35 | * @param string $name |
||
36 | * name of the widget |
||
37 | * @return string widget's HTML code |
||
38 | */ |
||
39 | public static function get(string $name): string |
||
42 | } |
||
43 | } |
||
44 |