Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public static function forConfiguration(string $widgetId, $widget) : self |
||
18 | { |
||
19 | return new self(sprintf( |
||
20 | "Invalid configuration for '%' widget; widget should be either string, callable or %s instance, %s given", |
||
21 | $widgetId, |
||
22 | WidgetInterface::class, |
||
23 | gettype($widget) |
||
24 | )); |
||
25 | } |
||
26 | } |