Add supported schemes doc blocks type
This commit is contained in:
parent
10d26470bd
commit
9bf46f88fb
@ -40,6 +40,9 @@ class UnsupportedSchemeException extends LogicException
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* @param string[] $supported
|
||||
*/
|
||||
public function __construct(Dsn $dsn, string $name = null, array $supported = [])
|
||||
{
|
||||
$provider = $dsn->getScheme();
|
||||
|
@ -39,6 +39,9 @@ abstract class AbstractTransportFactory implements TransportFactoryInterface
|
||||
return \in_array($dsn->getScheme(), $this->getSupportedSchemes());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
abstract protected function getSupportedSchemes(): array;
|
||||
|
||||
protected function getUser(Dsn $dsn): string
|
||||
|
Reference in New Issue
Block a user