| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function toArray(Request $request): array |
||
| 19 | { |
||
| 20 | return [ |
||
| 21 | 'id' => $this->id, |
||
|
|
|||
| 22 | 'title' => $this->title, |
||
| 23 | 'author' => $this->author, |
||
| 24 | 'asin' => $this->asin, |
||
| 25 | 'isbn' => $this->isbn, |
||
| 26 | 'ean' => $this->ean, |
||
| 27 | 'url' => $this->url, |
||
| 28 | 'salesrank' => $this->salesrank, |
||
| 29 | 'publisher' => $this->publisher, |
||
| 30 | 'publishdate' => $this->publishdate, |
||
| 31 | 'pages' => $this->pages, |
||
| 32 | 'overview' => $this->overview, |
||
| 33 | 'genre' => $this->genre, |
||
| 34 | 'cover' => $this->cover ? true : false, |
||
| 35 | 'cover_url' => $this->getCoverUrl(), |
||
| 36 | 'created_at' => $this->created_at?->toIso8601String(), |
||
| 37 | 'updated_at' => $this->updated_at?->toIso8601String(), |
||
| 38 | ]; |
||
| 59 |