WorkOS PHP SDK

CORSOriginResponse
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$createdAt  : DateTimeImmutable
Timestamp when the CORS origin was created.
$id  : string
Unique identifier of the CORS origin.
$object  : string
Distinguishes the CORS origin object.
$origin  : string
The origin URL.
$updatedAt  : DateTimeImmutable
Timestamp when the CORS origin was last updated.

Methods

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

Properties

$createdAt

Timestamp when the CORS origin was created.

public DateTimeImmutable $createdAt

$updatedAt

Timestamp when the CORS origin was last updated.

public DateTimeImmutable $updatedAt

Methods

__construct()

public __construct(string $object, string $id, string $origin, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt) : mixed
Parameters
$object : string
$id : string
$origin : string
$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