1 | <?php declare(strict_types=1); |
||
30 | class CommandStorage implements CommandStorageInterface |
||
31 | { |
||
32 | use ClassIsTrait; |
||
33 | |||
34 | /** |
||
35 | * @var string[] |
||
36 | */ |
||
37 | private $commandClasses = []; |
||
38 | 1 | ||
39 | /** |
||
40 | 1 | * @inheritdoc |
|
41 | */ |
||
42 | 1 | public function has(string $class): bool |
|
48 | 1 | ||
49 | /** |
||
50 | 1 | * @inheritdoc |
|
51 | */ |
||
52 | 1 | public function add(string $class): CommandStorageInterface |
|
60 | 1 | ||
61 | /** |
||
62 | 1 | * @inheritdoc |
|
63 | */ |
||
64 | public function getAll(): array |
||
68 | |||
69 | /** |
||
70 | 1 | * @param string $class |
|
71 | * |
||
72 | 1 | * @return bool |
|
73 | */ |
||
74 | private function isCommand(string $class): bool |
||
78 | } |
||
79 |