Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
AnmeldenEndpoints
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 register
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
1 / 1
1
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}