UserRole extends Model
Information about User Role
Table of Contents
- $group : MinGroup|null
- $profile : MinProfile|null
- from() : static
- Initializing a model from an array
- getGroup() : MinGroup
- Getter for group
- getProfile() : MinProfile
- Getter for profile
- jsonSerialize() : array<string|int, mixed>
- setGroup() : static
- Setter for group
- setProfile() : static
- Setter for profile
Properties
$group
protected
MinGroup|null
$group
= null
$profile
protected
MinProfile|null
$profile
= null
Methods
from()
Initializing a model from an array
public
static from(array<string|int, mixed> $params) : static
Parameters
- $params : array<string|int, mixed>
-
Pass this parameter if you want to initial property value from an array. See API reference for all property names and types
Tags
Return values
static —getGroup()
Getter for group
public
getGroup() : MinGroup
Return values
MinGroup —getProfile()
Getter for profile
public
getProfile() : MinProfile
Return values
MinProfile —jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —setGroup()
Setter for group
public
setGroup(MinGroup $group) : static
Parameters
- $group : MinGroup
Return values
static —To use in method chains
setProfile()
Setter for profile
public
setProfile(MinProfile $profile) : static
Parameters
- $profile : MinProfile
Return values
static —To use in method chains