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