Passed
Pull Request — master (#1300)
by Curtis
05:45
created

Preference   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A user() 0 3 1
1
<?php
2
3
namespace App\Models\enso\core;
4
5
use Illuminate\Database\Eloquent\Model;
6
use LaravelEnso\Rememberable\App\Traits\Rememberable;
7
8
class Preference extends Model
9
{
10
    use Rememberable;
0 ignored issues
show
Bug introduced by
The trait LaravelEnso\Rememberable\App\Traits\Rememberable requires the property $cacheLifetime which is not provided by App\Models\enso\core\Preference.
Loading history...
11
12
    protected $fillable = ['user_id', 'value'];
13
14
    protected $casts = ['value' => 'object'];
15
16
    public function user()
17
    {
18
        return $this->belongsTo(User::class);
19
    }
20
}
21