Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | /** |
3 | * Jingga |
4 | * |
5 | * PHP Version 8.1 |
6 | * |
7 | * @package phpOMS\Dispatcher |
8 | * @copyright Dennis Eichhorn |
9 | * @license OMS License 2.0 |
10 | * @version 1.0.0 |
11 | * @link https://jingga.app |
12 | */ |
13 | declare(strict_types=1); |
14 | |
15 | namespace phpOMS\Dispatcher; |
16 | |
17 | /** |
18 | * Dispatcher interface |
19 | * |
20 | * @package phpOMS\Dispatcher |
21 | * @license OMS License 2.0 |
22 | * @link https://jingga.app |
23 | * @since 1.0.0 |
24 | */ |
25 | interface DispatcherInterface |
26 | { |
27 | /** |
28 | * Dispatch controller. |
29 | * |
30 | * @param array|Callable|string $controller Controller |
31 | * @param mixed ...$data Data |
32 | * |
33 | * @return array Returns array of all dispatched results |
34 | * |
35 | * @throws \UnexpectedValueException This exception is thrown for unsupported controller representations |
36 | * |
37 | * @since 1.0.0 |
38 | */ |
39 | public function dispatch(array | string | callable $controller, mixed ...$data) : array; |
40 | } |