Total Complexity | 1 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | class RPCRouter implements RPCRouterInterface |
||
19 | { |
||
20 | use RouterTrait; |
||
|
|||
21 | |||
22 | /** |
||
23 | * Add new procedure. |
||
24 | * |
||
25 | * @param string $path |
||
26 | * @param string|\Closure $callback |
||
27 | * |
||
28 | * @return \React\Promise\Promise |
||
29 | * |
||
30 | * @author Donii Sergii <[email protected]> |
||
31 | */ |
||
32 | public function addRoute($path, $callback) |
||
39 |