public registerCommand ( Disque\Command\CommandInterface $commandHandler ) : void | ||
$commandHandler | Disque\Command\CommandInterface | Command |
Результат | void |
public function registerCommand(CommandInterface $commandHandler)
{
$command = strtoupper($commandHandler->getCommand());
$this->commandHandlers[$command] = $commandHandler;
}