public function setWithWiki(bool $withWiki) { if ($this->withWiki !== $withWiki) { $this->withWiki = $withWiki; Web::updateRoute($this->routePath, $this->getRoutes()[$this->routePath]); } return $this; }