WorkOS PHP SDK

PatchConnection
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$attributeMaps  : PatchConnectionAttributeMaps|null
How IdP attributes or claims map onto WorkOS profile fields. Only the provided fields are updated.
$connectionType  : string|null
The type of the Connection. Immutable after creation — it may be sent, but only with the Connection current type.
$externalId  : string|null
The customer-owned identifier for the Connection. Set to `null` to stop tracking one.
$name  : string|null
A human-readable name for the Connection.
$oidcOptions  : PatchConnectionOIDCOptions|null
Protocol configuration for OIDC connections. Only the provided fields are updated. Mutually exclusive with `saml_options`.
$samlOptions  : PatchConnectionSAMLOptions|null
Protocol configuration for SAML connections. Only the provided fields are updated. Mutually exclusive with `oidc_options`.

Methods

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

Properties

$connectionType

The type of the Connection. Immutable after creation — it may be sent, but only with the Connection current type.

public string|null $connectionType = null

$externalId

The customer-owned identifier for the Connection. Set to `null` to stop tracking one.

public string|null $externalId = null

$name

A human-readable name for the Connection.

public string|null $name = null

Methods

__construct()

public __construct([string|null $name = null ][, string|null $externalId = null ][, string|null $connectionType = null ][, PatchConnectionAttributeMaps|null $attributeMaps = null ][, PatchConnectionSAMLOptions|null $samlOptions = null ][, PatchConnectionOIDCOptions|null $oidcOptions = null ]) : mixed
Parameters
$name : string|null = null
$externalId : string|null = null
$connectionType : string|null = null
$attributeMaps : PatchConnectionAttributeMaps|null = null
$samlOptions : PatchConnectionSAMLOptions|null = null
$oidcOptions : PatchConnectionOIDCOptions|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>

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page

Search results