Bristol SU Support Package
Public Member Functions | List of all members
BristolSU\Support\Authentication\Contracts\ResourceIdGenerator Interface Reference
Inheritance diagram for BristolSU\Support\Authentication\Contracts\ResourceIdGenerator:
Inheritance graph
[legend]

Public Member Functions

 fromString (string $resourceType)
 

Detailed Description

Generates a resource ID from a resource type

Definition at line 8 of file ResourceIdGenerator.php.

Member Function Documentation

◆ fromString()

BristolSU\Support\Authentication\Contracts\ResourceIdGenerator::fromString ( string  $resourceType)

Return the resource ID from a resource type

If the resourceType is user, it will return the user id. It is up to the implementation as to where the resources are found.

Parameters
string$resourceTypeUser, Group or Role
Returns
int ID of the resource

Implemented in BristolSU\Support\Authentication\AuthenticationResourceIdGenerator.


The documentation for this interface was generated from the following file: