if (preg_match('/[^\x00-\x7F]/',
$label)) { idn_to_ascii($label, IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46,
$idnaInfo);
return (bool) ($idnaInfo['errors'
] & IDNA_ERROR_LABEL_TOO_LONG
);
} return strlen($label) > self::LABEL_MAX_LENGTH;
} private function addTLDWarnings(bool
$isTLDMissing): void
{ if ($isTLDMissing) { $this->warnings
[TLD::CODE
] =
new TLD();
} } public function domainPart(): string
{ return $this->domainPart;
}}