Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 5 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| QuizEndpoints | |
0.00% |
0 / 5 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| register | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Olz\Apps\Quiz; |
| 4 | |
| 5 | use Olz\Apps\BaseAppEndpoints; |
| 6 | use Olz\Apps\Quiz\Endpoints\GetMySkillLevelsEndpoint; |
| 7 | use Olz\Apps\Quiz\Endpoints\RegisterSkillCategoriesEndpoint; |
| 8 | use Olz\Apps\Quiz\Endpoints\RegisterSkillsEndpoint; |
| 9 | use Olz\Apps\Quiz\Endpoints\UpdateMySkillLevelsEndpoint; |
| 10 | use PhpTypeScriptApi\Api; |
| 11 | |
| 12 | class QuizEndpoints extends BaseAppEndpoints { |
| 13 | public function __construct( |
| 14 | protected GetMySkillLevelsEndpoint $getMySkillLevelsEndpoint, |
| 15 | protected UpdateMySkillLevelsEndpoint $updateMySkillLevelsEndpoint, |
| 16 | protected RegisterSkillCategoriesEndpoint $registerSkillCategoriesEndpoint, |
| 17 | protected RegisterSkillsEndpoint $registerSkillsEndpoint, |
| 18 | ) { |
| 19 | } |
| 20 | |
| 21 | public function register(Api $api): void { |
| 22 | $api->registerEndpoint('getMySkillLevels', $this->getMySkillLevelsEndpoint); |
| 23 | $api->registerEndpoint('updateMySkillLevels', $this->updateMySkillLevelsEndpoint); |
| 24 | $api->registerEndpoint('registerSkillCategories', $this->registerSkillCategoriesEndpoint); |
| 25 | $api->registerEndpoint('registerSkills', $this->registerSkillsEndpoint); |
| 26 | } |
| 27 | } |