ClaimCollector
in package
Collector of claim values.
Table of Contents
Methods
- __construct() : mixed
- Constructor.
- collect() : array<string|int, mixed>
- Collect claim values.
Methods
__construct()
Constructor.
public
__construct(string $subject[, array<string|int, string> $claimNames = null ][, array<string|int, string> $claimLocales = null ], UserClaimProvider $claimProvider) : mixed
Parameters
- $subject : string
-
The subject of the end-user.
- $claimNames : array<string|int, string> = null
-
Names of requested claims.
- $claimLocales : array<string|int, string> = null
-
Requested claim locales.
- $claimProvider : UserClaimProvider
-
An implementation of the
UserClaimProvider
interface that returns claim values.
collect()
Collect claim values.
public
collect() : array<string|int, mixed>
Return values
array<string|int, mixed> —An array of pairs of claim name and claim value.