for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Nyholm\Dsn\Exception;
use Nyholm\Dsn\Configuration\Dsn;
/**
* @author Tobias Nyholm <[email protected]>
*/
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.');
}
public static function onlyPath($dsn): self
return new self((string) $dsn, 'Only DSNs of type "path" is supported.');