FormbuilderEntry   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 20
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A formbuilder() 0 3 1
1
<?php
2
3
namespace MedianetDev\BackpackForm\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Backpack\CRUD\app\Models\Traits\CrudTrait;
7
8
class FormbuilderEntry extends Model
9
{
10
    use CrudTrait;
0 ignored issues
show
introduced by
The trait Backpack\CRUD\app\Models\Traits\CrudTrait requires some properties which are not provided by MedianetDev\BackpackForm\Models\FormbuilderEntry: $fakeColumns, $identifiableAttribute, $Type
Loading history...
11
12
    /*
13
    |--------------------------------------------------------------------------
14
    | GLOBAL VARIABLES
15
    |--------------------------------------------------------------------------
16
    */
17
    protected $table = 'med_entries';
18
    protected $guarded = ['id'];
19
20
    /*
21
    |--------------------------------------------------------------------------
22
    | RELATIONS
23
    |--------------------------------------------------------------------------
24
    */
25
    public function formbuilder()
26
    {
27
        return $this->belongsTo(Formbuilder::class, 'fb_form_id');
28
    }
29
}
30