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