How a {@see Credential} arrived — the closed set of transports the framework recognises. A `Bearer`
credential is the `Authorization: Bearer …` token; a `Cookie` credential is the session-cookie
value. The set is deliberately closed (a vocabulary, not free-form metadata), consistent with
{@see ActorType}: a credential's kind is identity, not a string a caller can invent.
CredentialType::cases()
public static functioncases():array
CredentialType::from()
public static functionfrom(string|int$value): static
Parameters
Parameters of from()
Name
Type
Description
$value
string|int
CredentialType::tryFrom()
public static functiontryFrom(string|int$value): ?static