| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function __construct( |
||
| 18 | $id = null, |
||
| 19 | $name = null, |
||
| 20 | $label = null, |
||
| 21 | $value = null, |
||
| 22 | $required = false, |
||
| 23 | $checked = false |
||
| 24 | ) |
||
| 25 | { |
||
| 26 | $this->id = $id ?? 'field_checkbox_'.rand(100000, 99999); |
||
| 27 | $this->name = $name ?? str_replace('-', '_', Str::kebab($label)); |
||
| 28 | $this->label = $label; |
||
| 29 | $this->value = $value; |
||
| 30 | $this->required = $required; |
||
| 31 | $this->checked = $checked; |
||
| 32 | } |
||
| 33 | |||
| 39 |