WorkOS PHP SDK

MagicAuthCreatedData
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

The event payload.

Table of Contents

Interfaces

JsonSerializable

Properties

$createdAt  : DateTimeImmutable
An ISO 8601 timestamp.
$email  : string
The email address of the user.
$expiresAt  : DateTimeImmutable
The timestamp when the Magic Auth code expires.
$id  : string
The unique ID of the Magic Auth code.
$object  : string
Distinguishes the Magic Auth object.
$updatedAt  : DateTimeImmutable
An ISO 8601 timestamp.
$userId  : string
The unique ID of the user.

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

$expiresAt

The timestamp when the Magic Auth code expires.

public DateTimeImmutable $expiresAt

Methods

__construct()

public __construct(string $object, string $id, string $userId, string $email, DateTimeImmutable $expiresAt, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt) : mixed
Parameters
$object : string
$id : string
$userId : string
$email : string
$expiresAt : DateTimeImmutable
$createdAt : DateTimeImmutable
$updatedAt : DateTimeImmutable

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

jsonSerialize()

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

toArray()

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

        
On this page

Search results