Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| AnmeldenEndpoints | |
0.00% |
0 / 6 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| register | |
0.00% |
0 / 5 |
|
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 __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 | } |