code: public function accepting(string $method) : RouteBuilder
      {
          $method = strtoupper($method);
          $this->methods = array_unique(array_merge($this->methods, [$method]));
  
          return $this;
      }
docs: Sets the method(s) which the route should accept.
  
  @param string $method The HTTP method(s) the route should handle
  @return RouteBuilder