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

Printer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A book() 0 4 1
1
<?php namespace GeneaLabs\LaravelModelCaching\Tests\Fixtures;
2
3
use GeneaLabs\LaravelModelCaching\Traits\Cachable;
4
use Illuminate\Database\Eloquent\Model;
5
use Illuminate\Database\Eloquent\Relations\BelongsTo;
6
7
class Printer extends Model
8
{
9
    use Cachable;
10
11
    protected $fillable = [
12
        "book_id",
13
        'name',
14
    ];
15
16
    public function book() : BelongsTo
17
    {
18
        return $this->belongsTo(Book::class);
19
    }
20
}
21