code: public static function fromCommand(CommandInterface $command)
      {
          $name = substr(strrchr(get_class($command), '\\'), 1);
  
          $message = 'No matching command handler found: ' . $name;
  
          return new self($message);
      }
docs: @param CommandInterface $command
  
  @return self