base) ? "/" . trim($this->base, "/") . "/" . ltrim($this->route, "/") : "/" . ltrim($this->route, "/"), "/"), '/'); } public function matchRouteName(string $name) : bool { return strtolower($this->name) === strtolower($name); } public function isRoute(string $name) { return $this->name === $name; } public function currentRoute(bool|null $value = null ) { return is_null($value) ? $value : $this->currentRoute = $value; } }