| Total Complexity | 6 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Response extends AbstractEndpointResponse |
||
| 10 | { |
||
| 11 | use HasResponsePagination; |
||
| 12 | |||
| 13 | 1 | public function storeName(): string |
|
| 14 | { |
||
| 15 | 1 | return (string) $this->baseResponse()->json('store.name'); |
|
| 16 | } |
||
| 17 | |||
| 18 | 1 | public function storeLogo(): string |
|
| 19 | { |
||
| 20 | 1 | return (string) $this->baseResponse()->json('store.logo'); |
|
| 21 | } |
||
| 22 | |||
| 23 | 1 | public function averageRating(): float |
|
| 24 | { |
||
| 25 | 1 | return (float) $this->baseResponse()->json('stats.average', 0); |
|
| 26 | } |
||
| 27 | |||
| 28 | 1 | public function count(): int |
|
| 31 | } |
||
| 32 | |||
| 33 | 1 | public function reviews(): Collection |
|
| 36 | } |
||
| 37 | |||
| 38 | 1 | protected function entityKey(): string |
|
| 41 | } |
||
| 42 | } |
||
| 43 |