AuthenticationFactorsCreateRequest
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
Table of Contents
Interfaces
- JsonSerializable
Properties
- $phoneNumber : string|null
- Required when type is 'sms'.
- $totpIssuer : string|null
- Required when type is 'totp'.
- $totpUser : string|null
- Required when type is 'totp'.
- $type : AuthenticationFactorsCreateRequestType
- The type of factor to enroll.
- $userId : string|null
- The ID of the user to associate the factor with.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$phoneNumber
Required when type is 'sms'.
public
string|null
$phoneNumber
= null
$totpIssuer
Required when type is 'totp'.
public
string|null
$totpIssuer
= null
$totpUser
Required when type is 'totp'.
public
string|null
$totpUser
= null
$type
The type of factor to enroll.
public
AuthenticationFactorsCreateRequestType
$type
$userId
The ID of the user to associate the factor with.
public
string|null
$userId
= null
Methods
__construct()
public
__construct(AuthenticationFactorsCreateRequestType $type[, string|null $phoneNumber = null ][, string|null $totpIssuer = null ][, string|null $totpUser = null ][, string|null $userId = null ]) : mixed
Parameters
- $type : AuthenticationFactorsCreateRequestType
- $phoneNumber : string|null = null
- $totpIssuer : string|null = null
- $totpUser : string|null = null
- $userId : string|null = null
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>