Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
CommandsEndpoints
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 register
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace Olz\Apps\Commands;
4
5use Olz\Apps\BaseAppEndpoints;
6use Olz\Apps\Commands\Endpoints\ExecuteCommandEndpoint;
7use PhpTypeScriptApi\Api;
8
9class CommandsEndpoints extends BaseAppEndpoints {
10    public function register(Api $api): void {
11        $api->registerEndpoint('executeCommand', function () {
12            return new ExecuteCommandEndpoint();
13        });
14    }
15}