ProfilePic::user()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 1
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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