class GroupRepository implements GroupRepositoryInterface

Group repository.

Properties

protected string $model Model name.
protected string $identifier Group identifier.

Methods

__construct(string $model)

Constructor.

getModel()

Returns a model instance.

createGroup(array $properties = [])

No description

setIdentifier(string $identifier)

Sets the user identifier.

Group|null
getByName(string $name)

Fetches a group by its name.

Group|null
getById(int $id)

Fetches a group by its id.

Group|null
getByIdentifier($identifier)

No description

Details

at line 42
__construct(string $model)

Constructor.

Parameters

string $model Model name

at line 52
protected Group getModel()

Returns a model instance.

Return Value

Group

at line 21
Group createGroup(array $properties = [])

Parameters

array $properties

Return Value

Group

at line 81
setIdentifier(string $identifier)

Sets the user identifier.

Parameters

string $identifier User identifier

at line 97
Group|null getByName(string $name)

Fetches a group by its name.

Parameters

string $name Group name

Return Value

Group|null

at line 108
Group|null getById(int $id)

Fetches a group by its id.

Parameters

int $id Group id

Return Value

Group|null

at line 21
Group|null getByIdentifier($identifier)

Parameters

$identifier

Return Value

Group|null