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

Store::books()   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\BelongsToMany;
5
6
class Store extends CachedModel
7
{
8
    protected $fillable = [
9
        'address',
10
        'name',
11
    ];
12
13
    public function books() : BelongsToMany
14
    {
15
        return $this->belongsToMany(Book::class);
16
    }
17
}
18