| Total Complexity | 2 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class MultiSelect extends FieldWithOptions |
||
| 6 | { |
||
| 7 | public $min; |
||
| 8 | public $max; |
||
| 9 | |||
| 10 | public function __construct( |
||
| 11 | $name, |
||
| 12 | $label, |
||
| 13 | $renderForBlocks = false, |
||
| 14 | $renderForModal = false, |
||
| 15 | $options = [], |
||
| 16 | $unpack = false, |
||
| 17 | $columns = 0, |
||
| 18 | $searchable = false, |
||
| 19 | $note = null, |
||
| 20 | $placeholder = null, |
||
| 21 | $disabled = false, |
||
| 22 | $addNew = false, |
||
| 23 | $moduleName = null, |
||
| 24 | $default = false, |
||
| 25 | $storeUrl = null, |
||
| 26 | $fieldsInModal = false, |
||
| 27 | $min = null, |
||
| 28 | $max = null |
||
| 29 | ) { |
||
| 30 | parent::__construct( |
||
| 31 | $name, |
||
| 32 | $label, |
||
| 33 | $renderForBlocks, |
||
| 34 | $renderForModal, |
||
| 35 | $options, |
||
| 36 | $unpack, |
||
| 37 | $columns, |
||
| 38 | $searchable, |
||
| 39 | $note, |
||
| 40 | $placeholder, |
||
| 41 | $disabled, |
||
| 42 | $addNew, |
||
| 43 | $moduleName, |
||
| 44 | $storeUrl, |
||
| 45 | $default, |
||
| 46 | $fieldsInModal |
||
| 47 | ); |
||
| 48 | $this->min = $min; |
||
| 49 | $this->max = $max; |
||
| 50 | } |
||
| 51 | |||
| 52 | public function render() |
||
| 57 | ]); |
||
| 58 | } |
||
| 60 |