ClaimCheckerManagerFactory
in package
Table of Contents
Properties
- $checkers : array<string|int, ClaimChecker>
Methods
- add() : void
- This method adds a claim checker to this factory.
- aliases() : array<string|int, string>
- Returns all claim checker aliases supported by this factory.
- all() : array<string|int, ClaimChecker>
- Returns all claim checkers supported by this factory.
- create() : ClaimCheckerManager
- This method creates a Claim Checker Manager and populate it with the claim checkers found based on the alias.
Properties
$checkers
private
array<string|int, ClaimChecker>
$checkers
= []
Methods
add()
This method adds a claim checker to this factory.
public
add(string $alias, ClaimChecker $checker) : void
Parameters
- $alias : string
- $checker : ClaimChecker
aliases()
Returns all claim checker aliases supported by this factory.
public
aliases() : array<string|int, string>
Return values
array<string|int, string>all()
Returns all claim checkers supported by this factory.
public
all() : array<string|int, ClaimChecker>
Return values
array<string|int, ClaimChecker>create()
This method creates a Claim Checker Manager and populate it with the claim checkers found based on the alias.
public
create(array<string|int, string> $aliases) : ClaimCheckerManager
If the alias is not supported, an InvalidArgumentException is thrown.
Parameters
- $aliases : array<string|int, string>