Total Complexity | 6 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
5 | class InputSwitch extends InputGroupComponent |
||
6 | { |
||
7 | /** |
||
8 | * The Bootstrap Switch plugin configuration parameters. Array with |
||
9 | * key => value pairs, where the key should be an existing configuration |
||
10 | * property of the plugin. |
||
11 | * |
||
12 | * @var array |
||
13 | */ |
||
14 | public $config; |
||
15 | |||
16 | /** |
||
17 | * Create a new component instance. |
||
18 | * Note this component requires the 'Bootstrap Switch' plugin. |
||
19 | * |
||
20 | * @return void |
||
21 | */ |
||
22 | 2 | public function __construct( |
|
31 | 2 | } |
|
32 | |||
33 | /** |
||
34 | * Make the class attribute for the input group item. |
||
35 | * |
||
36 | * @param string $invalid |
||
37 | * @return string |
||
38 | */ |
||
39 | 1 | public function makeItemClass($invalid) |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * Get the view / contents that represent the component. |
||
52 | * |
||
53 | * @return \Illuminate\View\View|string |
||
54 | */ |
||
55 | 1 | public function render() |
|
60 |