ProfilePic   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A user() 0 3 1
1
<?php
2
3
/**
4
 * Created by Reliese Model.
5
 * Date: Thu, 12 Jul 2018 22:39:27 +0000.
6
 */
7
8
namespace App\Models;
9
10
/**
11
 * Class ProfilePic
12
 *
13
 * @property int $id
14
 * @property int $user_id
15
 * @property string $image
16
 * @property string $type
17
 * @property int $size
18
 * @property \Jenssegers\Date\Date $created_at
19
 * @property \Jenssegers\Date\Date $updated_at
20
 *
21
 * @property \App\Models\User $user
22
 */
23
class ProfilePic extends BaseModel
24
{
25
26
    protected $casts = [
27
        'user_id' => 'int',
28
        'image' => 'string',
29
        'size' => 'int'
30
    ];
31
    protected $fillable = [
32
        'image'
33
    ];
34
35
    public function user()
36
    {
37
        return $this->belongsTo(\App\Models\User::class);
38
    }
39
}
40