UsersCreate extends Request
Create a new user.
Table of Contents
- $user : UserCreation|null
- The user to create
- from() : static
- Initializing a model from an array
- jsonSerialize() : array<string|int, mixed>
- setUser() : static
- Setter for user
Properties
$user
The user to create
protected
UserCreation|null
$user
= 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> —setUser()
Setter for user
public
setUser(UserCreation $user) : static
Parameters
- $user : UserCreation
-
The user to create
Return values
static —To use in method chains