class GroupRepository implements GroupRepositoryInterface

Group repository.

Properties

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

Methods

__construct(string $model)

Constructor.

ORM
getModel()

Returns a model instance.

createGroup(array $properties = [])

No description

setIdentifier(string $identifier)

Sets the user identifier.

Group|bool
getByIdentifier($identifier)

No description

Group|bool
getByName(string $name)

Fetches a group by its name.

Group|bool
getById(int $id)

Fetches a group by its id.

Details

at line 44
__construct(string $model)

Constructor.

Parameters

string $model Model name

at line 54
protected ORM getModel()

Returns a model instance.

Return Value

ORM

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

Parameters

array $properties

Return Value

Group

at line 84
setIdentifier(string $identifier)

Sets the user identifier.

Parameters

string $identifier User identifier

Exceptions

InvalidArgumentException

at line 23
Group|bool getByIdentifier($identifier)

Parameters

$identifier

Return Value

Group|bool

at line 114
Group|bool getByName(string $name)

Fetches a group by its name.

Parameters

string $name Group name

Return Value

Group|bool

at line 125
Group|bool getById(int $id)

Fetches a group by its id.

Parameters

int $id Group id

Return Value

Group|bool