WorkOS PHP SDK

AgentRegistration
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$agentIdentity  : AgentRegistrationAgentIdentity
The agent identity associated with this registration.
$claim  : AgentRegistrationClaim|null
The claim associated with this registration, or `null` if the registration has no claim.
$createdAt  : DateTimeImmutable
The timestamp when the registration was created.
$id  : string
Unique identifier of the agent registration.
$kind  : AgentRegistrationKind
The kind of agent registration.
$organizationId  : string
Identifier of the organization the agent is registered to.
$status  : AgentRegistrationStatus
The current verification status of the registration.
$updatedAt  : DateTimeImmutable
The timestamp when the registration was last updated.

Methods

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

Properties

$createdAt

The timestamp when the registration was created.

public DateTimeImmutable $createdAt

$organizationId

Identifier of the organization the agent is registered to.

public string $organizationId

$updatedAt

The timestamp when the registration was last updated.

public DateTimeImmutable $updatedAt

Methods

__construct()

public __construct(string $id, AgentRegistrationAgentIdentity $agentIdentity, string $organizationId, AgentRegistrationStatus $status, AgentRegistrationKind $kind, AgentRegistrationClaim|null $claim, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt) : mixed
Parameters
$id : string
$agentIdentity : AgentRegistrationAgentIdentity
$organizationId : string
$status : AgentRegistrationStatus
$kind : AgentRegistrationKind
$claim : AgentRegistrationClaim|null
$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