Total Complexity | 2 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace GeneaLabs\LaravelModelCaching\Tests\Fixtures; |
||
7 | class Author extends CachedModel |
||
8 | { |
||
9 | protected $fillable = [ |
||
10 | 'name', |
||
11 | 'email', |
||
12 | ]; |
||
13 | |||
14 | public function books() : HasMany |
||
15 | { |
||
16 | return $this->hasMany(Book::class); |
||
17 | } |
||
18 | |||
19 | public function profile() : HasOne |
||
20 | { |
||
21 | return $this->hasOne(Profile::class); |
||
22 | } |
||
24 |