1 | <?php declare(strict_types=1); |
||
8 | final class CommandLocatorEvent extends AbstractEvent |
||
9 | { |
||
10 | const NAME = 'api-clients.foundation.command-locator'; |
||
11 | |||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | private $map = []; |
||
16 | |||
17 | /** |
||
18 | * @return CommandLocatorEvent |
||
19 | */ |
||
20 | public static function create(): CommandLocatorEvent |
||
24 | |||
25 | private function __construct() |
||
28 | |||
29 | /** |
||
30 | * @return string |
||
31 | */ |
||
32 | public function getName() |
||
36 | |||
37 | /** |
||
38 | * @param string $path |
||
39 | * @param string $namespace |
||
40 | */ |
||
41 | public function add(string $path, string $namespace) |
||
45 | |||
46 | /** |
||
47 | * @return array |
||
48 | */ |
||
49 | public function getMap(): array |
||
53 | } |
||
54 |