WorkOS PHP SDK

AgentCredentialValidation
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$expiresAt  : DateTimeImmutable|null
The timestamp when the credential expires, or `null` when the credential is invalid.
$registrationId  : string|null
Identifier of the agent registration the credential belongs to, or `null` when the credential is invalid.
$valid  : bool
Whether the presented credential is valid.

Methods

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

Properties

$expiresAt

The timestamp when the credential expires, or `null` when the credential is invalid.

public DateTimeImmutable|null $expiresAt

$registrationId

Identifier of the agent registration the credential belongs to, or `null` when the credential is invalid.

public string|null $registrationId

Methods

__construct()

public __construct(bool $valid, string|null $registrationId, DateTimeImmutable|null $expiresAt) : mixed
Parameters
$valid : bool
$registrationId : string|null
$expiresAt : DateTimeImmutable|null

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