Total Complexity | 2 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class Options extends Component |
||
9 | { |
||
10 | /** |
||
11 | * The list of options as key value pairs |
||
12 | * |
||
13 | * @var array |
||
14 | */ |
||
15 | public $options; |
||
16 | |||
17 | /** |
||
18 | * The list of selected option keys |
||
19 | * |
||
20 | * @var array |
||
21 | */ |
||
22 | public $selected; |
||
23 | |||
24 | /** |
||
25 | * Whether to use strict comparison between key and selections |
||
26 | * |
||
27 | * @var bool |
||
28 | */ |
||
29 | public $strict; |
||
30 | |||
31 | /** |
||
32 | * Create a new component instance. |
||
33 | */ |
||
34 | public function __construct($options = null, $selected = null, $strict = null) |
||
35 | { |
||
36 | $this->options = Arr::wrap($options); |
||
37 | $this->selected = Arr::wrap($selected); |
||
38 | $this->strict = isset($strict); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Get the view / contents that represent the component. |
||
43 | * |
||
44 | * @return \Illuminate\View\View|string |
||
45 | */ |
||
46 | public function render() |
||
49 | } |
||
50 | } |
||
51 |