Skip to content

Commit

Permalink
Add supported schemes doc blocks type
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Segatori authored and nicolas-grekas committed Dec 26, 2019
1 parent 10d2647 commit 9bf46f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Expand Up @@ -40,6 +40,9 @@ class UnsupportedSchemeException extends LogicException
],
];

/**
* @param string[] $supported
*/
public function __construct(Dsn $dsn, string $name = null, array $supported = [])
{
$provider = $dsn->getScheme();
Expand Down
Expand Up @@ -39,6 +39,9 @@ public function supports(Dsn $dsn): bool
return \in_array($dsn->getScheme(), $this->getSupportedSchemes());
}

/**
* @return string[]
*/
abstract protected function getSupportedSchemes(): array;

protected function getUser(Dsn $dsn): string
Expand Down

0 comments on commit 9bf46f8

Please sign in to comment.