system/Router/RouteCollection.php
public function setDefaultMethod(string $value): RouteCollectionInterface
	{
		$this->defaultMethod = filter_var($value, FILTER_SANITIZE_STRING);

		return $this;
	}
public function setDefaultMethod(string $value): RouteCollectionInterface
	{
		$this->defaultMethod = filter_var($value, FILTER_SANITIZE_STRING);

		return $this;
	}
Sets the default method to call on the controller when no other
method has been set in the route.

@param $value

@return \CodeIgniter\Router\RouteCollectionInterface