isValid($value) || $value !== \strtolower($value)) { throw new \InvalidArgumentException(\sprintf('Invalid normalized handle "%s".', $value)); } if ($labels !== \explode('.', $value)) { throw new \InvalidArgumentException('Handle labels do not match the normalized value.'); } } /** * Returns the canonical string representation. */ public function __toString(): string { return $this->value; } }