public function matches(CommandInterface $command)
{
return $this->getCommandName() === $command->get('command');
}
/** * {@inheritdoc} */ public function matches(CommandInterface $command) { return null === $this->commandName ? $command instanceof SlashCommand : $command instanceof SlashCommand && parent::matches($command); }