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
OlzEditEntityTypedEndpoint
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
 configure
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace 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 *     id: Id,
16 *     custom?: CustomRequest,
17 *   },
18 *   array{
19 *     id: Id,
20 *     meta: OlzMetaData,
21 *     data: Data,
22 *     custom?: CustomResponse,
23 *   }
24 * >
25 */
26abstract class OlzEditEntityTypedEndpoint extends OlzTypedEndpoint {
27    use OlzEntityEndpointTrait;
28
29    public function configure(): void {
30        parent::configure();
31        $this->phpStanUtils->registerTypeImport(OlzEntityEndpointTrait::class);
32    }
33}