| Total Complexity | 3 | 
| Total Lines | 38 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 15 | class SimpleCollectionSerializer extends DefaultSerializer | ||
| 16 | { | ||
| 17 | /** | ||
| 18 | * Serialize a collection. | ||
| 19 | * The data will NOT be nested under a "data" key. | ||
| 20 | * | ||
| 21 | * @param string $resourceKey | ||
| 22 | * @param array $data | ||
| 23 | * | ||
| 24 | * @return array | ||
| 25 | */ | ||
| 26 | 1 | public function collection($resourceKey, array $data): array | |
| 27 |     { | ||
| 28 | 1 | return $data; | |
| 29 | } | ||
| 30 | |||
| 31 | /** | ||
| 32 | * Serialize the paginator. | ||
| 33 | * | ||
| 34 | * @param PaginatorInterface $paginator | ||
| 35 | * | ||
| 36 | * @return array | ||
| 37 | */ | ||
| 38 | 1 | public function paginator(PaginatorInterface $paginator) | |
| 41 | } | ||
| 42 | |||
| 43 | /** | ||
| 44 | * Serialize the cursor. | ||
| 45 | * | ||
| 46 | * @param CursorInterface $cursor | ||
| 47 | * | ||
| 48 | * @return array | ||
| 49 | */ | ||
| 50 | 1 | public function cursor(CursorInterface $cursor): array | |
| 53 | } | ||
| 54 | } | ||
| 55 |