Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 15 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
AnmeldenEndpoints | |
0.00% |
0 / 15 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
register | |
0.00% |
0 / 15 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace Olz\Apps\Anmelden; |
4 | |
5 | use Olz\Apps\Anmelden\Endpoints\CreateBookingEndpoint; |
6 | use Olz\Apps\Anmelden\Endpoints\CreateRegistrationEndpoint; |
7 | use Olz\Apps\Anmelden\Endpoints\GetManagedUsersEndpoint; |
8 | use Olz\Apps\Anmelden\Endpoints\GetPrefillValuesEndpoint; |
9 | use Olz\Apps\Anmelden\Endpoints\GetRegistrationEndpoint; |
10 | use Olz\Apps\BaseAppEndpoints; |
11 | use PhpTypeScriptApi\Api; |
12 | |
13 | class AnmeldenEndpoints extends BaseAppEndpoints { |
14 | public function register(Api $api): void { |
15 | $api->registerEndpoint('createBooking', function () { |
16 | return new CreateBookingEndpoint(); |
17 | }); |
18 | $api->registerEndpoint('createRegistration', function () { |
19 | return new CreateRegistrationEndpoint(); |
20 | }); |
21 | $api->registerEndpoint('getManagedUsers', function () { |
22 | return new GetManagedUsersEndpoint(); |
23 | }); |
24 | $api->registerEndpoint('getPrefillValues', function () { |
25 | return new GetPrefillValuesEndpoint(); |
26 | }); |
27 | $api->registerEndpoint('getRegistration', function () { |
28 | return new GetRegistrationEndpoint(); |
29 | }); |
30 | } |
31 | } |