UsersIdProfilesAddRoles extends Request
add user roles to a user.
Table of Contents
- $userRoles : array<string|int, mixed>|null
- user roles array to add
- from() : static
- Initializing a model from an array
- jsonSerialize() : array<string|int, mixed>
- setUserRoles() : static
- Setter for userRoles
Properties
$userRoles
user roles array to add
protected
array<string|int, mixed>|null
$userRoles
= 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 —jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —setUserRoles()
Setter for userRoles
public
setUserRoles(array<string|int, mixed> $userRoles) : static
Parameters
- $userRoles : array<string|int, mixed>
-
user roles array to add
Return values
static —To use in method chains