*/ class DsnTypeNotSupported extends InvalidDsnException { /** * @param Dsn|string $dsn */ public static function onlyUrl($dsn): self { return new self((string) $dsn, 'Only DSNs of type "URL" is supported.'); } /** * @param Dsn|string $dsn */ public static function onlyPath($dsn): self { return new self((string) $dsn, 'Only DSNs of type "path" is supported.'); } }