WorkOS PHP SDK

NewConnectApplicationSecret
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$createdAt  : DateTimeImmutable
An ISO 8601 timestamp.
$id  : string
The unique ID of the client secret.
$lastUsedAt  : string|null
The timestamp when the client secret was last used, or null if never used.
$object  : string
Distinguishes the connect application secret object.
$secret  : string
The plaintext secret value. Only returned at creation time and cannot be retrieved later.
$secretHint  : string
A hint showing the last few characters of the secret value.
$updatedAt  : DateTimeImmutable
An ISO 8601 timestamp.

Methods

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

Properties

$lastUsedAt

The timestamp when the client secret was last used, or null if never used.

public string|null $lastUsedAt

$secret

The plaintext secret value. Only returned at creation time and cannot be retrieved later.

public string $secret

Methods

__construct()

public __construct(string $object, string $id, string $secretHint, string|null $lastUsedAt, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt, string $secret) : mixed
Parameters
$object : string
$id : string
$secretHint : string
$lastUsedAt : string|null
$createdAt : DateTimeImmutable
$updatedAt : DateTimeImmutable
$secret : string

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>

        
On this page

Search results