validateNameserver($nameserver); } if ($artax === null) { $artax = new DefaultClient(); } $this->artax = $artax; $this->nameservers = $nameservers; } private function validateNameserver($nameserver) { if (!($nameserver instanceof Nameserver)) { throw new ConfigException("Invalid nameserver: {$nameserver}"); } } public function getNameservers(): array { return $this->nameservers; } public function getArtax(): Client { return $this->artax; } }