/** * @param CommandInterface $command * * @return bool */ public function matches(CommandInterface $command) { return $this->getCommandName() === $command->get('command'); }