Add supported schemes doc blocks type

This commit is contained in:
Philippe Segatori 2019-12-22 00:12:27 +01:00 committed by Nicolas Grekas
parent 10d26470bd
commit 9bf46f88fb
2 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,9 @@ class UnsupportedSchemeException extends LogicException
],
];
/**
* @param string[] $supported
*/
public function __construct(Dsn $dsn, string $name = null, array $supported = [])
{
$provider = $dsn->getScheme();

View File

@ -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