public function __construct(?DNSGetRecordWrapper $dnsGetRecord = null) { if (!function_exists('idn_to_ascii')) { throw new \LogicException(sprintf('The %s class requires the Intl extension.', __CLASS__)); } if ($dnsGetRecord == null) { $dnsGetRecord = new DNSGetRecordWrapper(); } $this->dnsGetRecord = $dnsGetRecord; }