code: public static function forFailure($failure, Route $route = null) : RoutingResult
      {
          $result = new self();
          $result->success = false;
          $result->failure = $failure;
          $result->route = $route;
  
          return $result;
      }
docs: Factory method to create a new {@link bitExpert\Pathfinder\RoutingResult}.
  
  Target may be set optionally if any fallback / default target needs to be set.
  
  @param int $failure
  @param Route | null $route
  @return RoutingResult