WorkOS PHP SDK

ConnectionActivatedData
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

The event payload.

Table of Contents

Interfaces

JsonSerializable

Properties

$connectionType  : ConnectionDeletedDataConnectionType
The type of the connection.
$createdAt  : DateTimeImmutable
An ISO 8601 timestamp.
$domains  : array<string|int, ConnectionActivatedDataDomain>
The domains associated with the connection.
$externalKey  : string
The external key of the connection.
$id  : string
Unique identifier of the connection.
$name  : string
The name of the connection.
$object  : string
Distinguishes the connection object.
$organizationId  : string|null
The ID of the organization the connection belongs to.
$state  : ConnectionDeletedDataState
The current state of the connection.
$status  : ConnectionStatus
Deprecated. Use state instead.
$updatedAt  : DateTimeImmutable
An ISO 8601 timestamp.

Methods

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

Properties

$organizationId

The ID of the organization the connection belongs to.

public string|null $organizationId = null

Methods

__construct()

public __construct(string $object, string $id, ConnectionDeletedDataState $state, string $name, ConnectionDeletedDataConnectionType $connectionType, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt, string $externalKey, ConnectionStatus $status, array<string|int, mixed> $domains[, string|null $organizationId = null ]) : mixed
Parameters
$object : string
$id : string
$state : ConnectionDeletedDataState
$name : string
$connectionType : ConnectionDeletedDataConnectionType
$createdAt : DateTimeImmutable
$updatedAt : DateTimeImmutable
$externalKey : string
$status : ConnectionStatus
$domains : array<string|int, mixed>
$organizationId : string|null = 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