Passed
Push — dev5 ( e66ef8...5a922b )
by Ron
05:53
created

SystemDataFields   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 24
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A SystemDataFieldTypes() 0 3 1
1
<?php
2
3
namespace App;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class SystemDataFields extends Model
8
{
9
    protected $primaryKey = 'field_id';
10
    protected $fillable = ['sys_id', 'data_type_id', 'order'];
11
    protected $hidden = ['data_type_id', 'order', 'created_at', 'updated_at'];
12
13
    // public function systemCustDataTypes()
14
    // {
15
    //     return $this->hasMany('App\systemCustDataTypes', 'data_type_id', 'data_type_id');
16
    // }
17
18
    // public function systemTypes()
19
    // {
20
    //     return $this->hasMany('App\SystemTypes', 'sys_id', 'sys_id');
21
    // }
22
23
    // public function CustomerSystemFields()
24
    // {
25
    //     return $this->belongsTo('App\CustomerSystemFields', 'field_id');
26
    // }
27
28 4
    public function SystemDataFieldTypes()
29
    {
30 4
        return $this->belongsTo('App\SystemDataFieldTypes', 'data_type_id', 'data_type_id');
31
    }
32
33
34
}
35