Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
ListPanini2024PicturesEndpoint
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 handle
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace Olz\Apps\Panini2024\Endpoints;
4
5use Olz\Api\OlzTypedEndpoint;
6
7/**
8 * @phpstan-type OlzPanini2024Filter array{idIs: int<1, max>} | array{page: int<1, max>}
9 * @phpstan-type OlzPanini2024PictureData array{
10 *   id: int<1, max>,
11 *   line1: non-empty-string,
12 *   line2?: ?non-empty-string,
13 *   association?: ?non-empty-string,
14 *   imgSrc: non-empty-string,
15 *   imgStyle: non-empty-string,
16 *   isLandscape: bool,
17 *   hasTop: bool,
18 * }
19 *
20 * @extends OlzTypedEndpoint<
21 *   array{filter?: ?OlzPanini2024Filter},
22 *   array<array{data: OlzPanini2024PictureData}>,
23 * >
24 */
25class ListPanini2024PicturesEndpoint extends OlzTypedEndpoint {
26    protected function handle(mixed $input): mixed {
27        $this->checkPermission('panini2024');
28
29        // TODO: Implement
30
31        return [];
32    }
33}