Completed
Push — master ( 7187a0...60d66c )
by Mike
02:58
created

Profile::author()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php namespace GeneaLabs\LaravelModelCaching\Tests\Fixtures;
2
3
use GeneaLabs\LaravelModelCaching\CachedModel;
4
use Illuminate\Database\Eloquent\Relations\HasMany;
5
use Illuminate\Database\Eloquent\Relations\BelongsTo;
6
7
class Profile extends CachedModel
8
{
9
    protected $fillable = [
10
        'first_name',
11
        'last_name',
12
    ];
13
14
    public function author() : BelongsTo
15
    {
16
        return $this->belongsTo(Author::class);
17
    }
18
}
19