Total Complexity | 1 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class FormFieldCondition extends Model |
||
10 | { |
||
11 | use CrudTrait; |
||
|
|||
12 | |||
13 | /* |
||
14 | |-------------------------------------------------------------------------- |
||
15 | | GLOBAL VARIABLES |
||
16 | |-------------------------------------------------------------------------- |
||
17 | */ |
||
18 | protected $table = 'med_form_field_conditions'; |
||
19 | protected $guarded = ['id']; |
||
20 | |||
21 | /** |
||
22 | * The attributes that are mass assignable. |
||
23 | * |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $fillable = [ |
||
27 | 'operation', |
||
28 | 'form_field_id', |
||
29 | 'form_step_id', |
||
30 | 'when', |
||
31 | 'eq', |
||
32 | 'show', |
||
33 | ]; |
||
34 | |||
35 | /* |
||
36 | |-------------------------------------------------------------------------- |
||
37 | | FUNCTIONS |
||
38 | |-------------------------------------------------------------------------- |
||
39 | */ |
||
40 | |||
41 | |||
42 | /* |
||
43 | |-------------------------------------------------------------------------- |
||
44 | | RELATIONS |
||
45 | |-------------------------------------------------------------------------- |
||
46 | */ |
||
47 | |||
48 | /** |
||
49 | * Get the form field that owns the translation |
||
50 | */ |
||
51 | public function formField() |
||
75 |