Completed
Pull Request — master (#372)
by Mike
31:01 queued 16:07
created

UncachedStore   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A books() 0 4 1
1
<?php namespace GeneaLabs\LaravelModelCaching\Tests\Fixtures;
2
3
use Illuminate\Database\Eloquent\Model;
4
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
5
6
class UncachedStore extends Model
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