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

Author::toArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php namespace GeneaLabs\LaravelModelCaching\Tests\Fixtures\Http\Resources;
2
3
use Illuminate\Http\Resources\Json\JsonResource;
4
5
class Author extends JsonResource
6
{
7
    public function toArray($request)
8
    {
9
        return [
10
            'name' => $this->name,
11
            'books' => $this->books,
12
        ];
13
    }
14
}
15