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