Passed
Push — master ( 5b96e8...c2fbb6 )
by Mike
04:38
created

UncachedStore   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A books() 0 3 1
1
<?php namespace GeneaLabs\LaravelModelCaching\Tests\Fixtures;
2
3
use GeneaLabs\LaravelModelCaching\CachedModel;
4
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
5
6
class UncachedStore extends CachedModel
7
{
8
    protected $fillable = [
9
        'address',
10
        'name',
11
    ];
12
    protected $table = 'stores';
13
14
    public function books() : BelongsToMany
15
    {
16
        return $this->belongsToMany(UncachedBook::class);
17
    }
18
}
19