| Total Complexity | 5 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Select extends InputGroupComponent |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Create a new component instance. |
||
| 9 | * |
||
| 10 | * @return void |
||
| 11 | */ |
||
| 12 | public function __construct( |
||
| 18 | ); |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Make the class attribute for the input group item. |
||
| 23 | * |
||
| 24 | * @param string $invalid |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | public function makeItemClass($invalid) |
||
| 28 | { |
||
| 29 | $classes = ['form-control', 'w-100']; |
||
| 30 | |||
| 31 | if (! empty($invalid) && ! isset($this->disableFeedback)) { |
||
| 32 | $classes[] = 'is-invalid'; |
||
| 33 | } |
||
| 34 | |||
| 35 | return implode(' ', $classes); |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get the view / contents that represent the component. |
||
| 40 | * |
||
| 41 | * @return \Illuminate\View\View|string |
||
| 42 | */ |
||
| 43 | public function render() |
||
| 46 | } |
||
| 47 | } |
||
| 48 |