| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class FormStep extends Model |
||
| 10 | { |
||
| 11 | use CrudTrait; |
||
|
|
|||
| 12 | |||
| 13 | /* |
||
| 14 | |-------------------------------------------------------------------------- |
||
| 15 | | GLOBAL VARIABLES |
||
| 16 | |-------------------------------------------------------------------------- |
||
| 17 | */ |
||
| 18 | protected $table = 'med_form_steps'; |
||
| 19 | protected $guarded = ['id']; |
||
| 20 | |||
| 21 | /* |
||
| 22 | |-------------------------------------------------------------------------- |
||
| 23 | | FUNCTIONS |
||
| 24 | |-------------------------------------------------------------------------- |
||
| 25 | */ |
||
| 26 | public function translation() |
||
| 27 | { |
||
| 28 | return $this->hasOne(FormStepTranslation::class)->where('locale', App::getLocale()); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function translations() |
||
| 32 | { |
||
| 33 | return $this->hasMany(FormStepTranslation::class); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function form() |
||
| 39 | } |
||
| 40 | |||
| 41 | /* |
||
| 42 | |-------------------------------------------------------------------------- |
||
| 43 | | RELATIONS |
||
| 44 | |-------------------------------------------------------------------------- |
||
| 45 | */ |
||
| 46 | public function getTranslatedTitleAttribute() |
||
| 49 | } |
||
| 50 | |||
| 52 |