subdomain => backend */ public array $routes = []; /** @var array subdomain => traffic host */ public array $hosts = []; public bool $certReady = true; public function write(string $trafficHost, string $subdomain, string $backend): void { $this->routes[$subdomain] = $backend; $this->hosts[$subdomain] = $trafficHost; } public function remove(string $trafficHost, string $subdomain): void { unset($this->routes[$subdomain], $this->hosts[$subdomain]); } public function certReachable(string $fqdn): bool { return $this->certReady; } }