Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | abstract class ApiController extends AbstractController |
||
16 | { |
||
17 | /** |
||
18 | * @inheritdoc |
||
19 | */ |
||
20 | 2 | public static function getSubscribedServices(): array |
|
21 | { |
||
22 | 2 | return array_merge( |
|
23 | 2 | parent::getSubscribedServices(), |
|
24 | [ |
||
25 | 2 | ResponseConverter::class, |
|
26 | ] |
||
27 | ); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @noinspection PhpIncompatibleReturnTypeInspection |
||
32 | * @psalm-suppress all |
||
33 | */ |
||
34 | 2 | protected function responseConverter(): ResponseConverter |
|
37 | } |
||
38 | |||
39 | 1 | final protected function item(ObjectType $resource): JsonResponse |
|
42 | } |
||
43 | |||
44 | 1 | final protected function collection(CollectionType $resource): JsonResponse |
|
49 |