WorkOS PHP SDK

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

Methods

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results