Test Failed
Push — develop ( 55b248...7d9761 )
by Tony
21:25
created

Storage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 39
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A device() 0 4 1
1
<?php
2
3
namespace App\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
/**
8
 * App\Models\Storage
9
 *
10
 * @property integer $storage_id
11
 * @property integer $device_id
12
 * @property-read \App\Models\Device $device
13
 * @mixin \Eloquent
14
 */
15
class Storage extends Model
16
{
17
    /**
18
     * Indicates if the model should be timestamped.
19
     *
20
     * @var bool
21
     */
22
    public $timestamps = false;
23
    /**
24
     * The table associated with the model.
25
     *
26
     * @var string
27
     */
28
    protected $table = 'storage';
29
    /**
30
     * The primary key column name.
31
     *
32
     * @var string
33
     */
34
    protected $primaryKey = 'storage_id';
35
36
    // ---- Define Helper Functions ----
37
38
    // ---- Accessors/Mutators ----
39
40
    // ---- Query scopes ----
41
42
43
    // ---- Define Relationships ----
44
45
    /**
46
     * Get the device this port belongs to.
47
     *
48
     */
49
    public function device()
50
    {
51
        return $this->belongsTo('App\Models\Device', 'device_id', 'device_id');
52
    }
53
}
54
55