Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
OlzCreateEntityTypedEndpoint | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
configure | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace Olz\Api; |
4 | |
5 | /** |
6 | * @template Id |
7 | * @template Data |
8 | * @template CustomRequest = never |
9 | * @template CustomResponse = never |
10 | * |
11 | * @phpstan-import-type OlzMetaData from OlzEntityEndpointTrait |
12 | * |
13 | * @extends OlzTypedEndpoint< |
14 | * array{ |
15 | * meta: OlzMetaData, |
16 | * data: Data, |
17 | * custom?: CustomRequest, |
18 | * }, |
19 | * array{ |
20 | * id?: ?Id, |
21 | * custom?: CustomResponse, |
22 | * } |
23 | * > |
24 | */ |
25 | abstract class OlzCreateEntityTypedEndpoint extends OlzTypedEndpoint { |
26 | use OlzEntityEndpointTrait; |
27 | |
28 | public function configure(): void { |
29 | parent::configure(); |
30 | $this->phpStanUtils->registerTypeImport(OlzEntityEndpointTrait::class); |
31 | } |
32 | } |