WorkOS PHP SDK

CreateConnectionStandardAttributes
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$email  : string|null
The IdP attribute or claim the profile's `email` is mapped from. When omitted, the default for the connection type is used.
$firstName  : string|null
The IdP attribute or claim the profile's `first_name` is mapped from. When omitted, the default for the connection type is used.
$groups  : string|null
The IdP attribute or claim the profile's `groups` are mapped from. `null` leaves the mapping unset.
$idpId  : string|null
The IdP attribute or claim the profile's `idp_id` is mapped from. When omitted, the default for the connection type is used.
$lastName  : string|null
The IdP attribute or claim the profile's `last_name` is mapped from. When omitted, the default for the connection type is used.
$name  : string|null
The IdP attribute or claim the profile's `name` is mapped from. `null` leaves the mapping unset.

Methods

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

Properties

$email

The IdP attribute or claim the profile's `email` is mapped from. When omitted, the default for the connection type is used.

public string|null $email = null

$firstName

The IdP attribute or claim the profile's `first_name` is mapped from. When omitted, the default for the connection type is used.

public string|null $firstName = null

$idpId

The IdP attribute or claim the profile's `idp_id` is mapped from. When omitted, the default for the connection type is used.

public string|null $idpId = null

$lastName

The IdP attribute or claim the profile's `last_name` is mapped from. When omitted, the default for the connection type is used.

public string|null $lastName = null

Methods

__construct()

public __construct([string|null $idpId = null ][, string|null $email = null ][, string|null $firstName = null ][, string|null $lastName = null ][, string|null $groups = null ][, string|null $name = null ]) : mixed
Parameters
$idpId : string|null = null
$email : string|null = null
$firstName : string|null = null
$lastName : string|null = null
$groups : string|null = null
$name : string|null = null

jsonSerialize()

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

Search results