public function getDefaultHost() : Vhost
{
if ($this->defaultHost) {
return $this->defaultHost;
} elseif ($this->cachedVhostCount) {
return current($this->vhosts);
} else {
throw new \LogicException("Cannot retrieve default host; no Vhost instances added to the group");
}
}