\Piko\User\IdentityInterface
User identity interface.
Methods summary
Name | Description |
---|---|
public findIdentity |
Finds an identity by the given ID. |
public getId |
Returns an ID that can uniquely identify a user id… |
Methods
public findIdentity(): \Piko\User\IdentityInterface|null
public static findIdentity(string|int $id): \Piko\User\IdentityInterface|null
Finds an identity by the given ID.
Parameters
$id : the ID to be looked for
Return:
\Piko\User\IdentityInterface|null the identity object that matches the given ID. null should be returned if such an identity cannot be found
public getId(): string|int
public getId(): string|int
Returns an ID that can uniquely identify a user identity.
Return:
string|int an ID that uniquely identifies a user identity.