Completed
Push — master ( ef62ef...3339ef )
by Mike
02:44
created

Book::author()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
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\BelongsTo;
5
6
class Book extends CachedModel
7
{
8
    protected $dates = [
9
        'published_at',
10
    ];
11
    protected $fillable = [
12
        'description',
13
        'published_at',
14
        'title',
15
    ];
16
17
    public function author() : BelongsTo
18
    {
19
        return $this->belongsTo(Author::class);
20
    }
21
}
22