'None (unencrypted)', self::Ssl => 'LDAPS (implicit TLS)', self::Tls => 'StartTLS', }; } /** The port this scheme conventionally listens on. */ public function defaultPort(): int { return match ($this) { self::Ssl => 636, default => 389, }; } }