WorkOS PHP SDK

OrganizationMembershipUpdatedData
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

The event payload.

Table of Contents

Interfaces

JsonSerializable

Properties

$createdAt  : DateTimeImmutable
An ISO 8601 timestamp.
$customAttributes  : array<string, mixed>
Custom attributes associated with the membership.
$directoryManaged  : bool
Whether the membership is managed by a directory sync provider.
$id  : string
Unique identifier of the organization membership.
$object  : string
Distinguishes the organization membership object.
$organizationId  : string
The ID of the organization.
$role  : SlimRole
The role associated with the membership.
$roles  : array<string|int, SlimRole>|null
The roles associated with the membership.
$status  : OrganizationMembershipStatus
The status of the organization membership.
$updatedAt  : DateTimeImmutable
An ISO 8601 timestamp.
$userId  : string
The ID of the user.

Methods

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

Properties

Methods

__construct()

public __construct(string $object, string $id, string $userId, string $organizationId, OrganizationMembershipStatus $status, SlimRole $role, array<string|int, mixed> $customAttributes, bool $directoryManaged, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt[, array<string|int, mixed>|null $roles = null ]) : mixed
Parameters
$object : string
$id : string
$userId : string
$organizationId : string
$status : OrganizationMembershipStatus
$role : SlimRole
$customAttributes : array<string|int, mixed>
$directoryManaged : bool
$createdAt : DateTimeImmutable
$updatedAt : DateTimeImmutable
$roles : array<string|int, mixed>|null = null

jsonSerialize()

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

        
On this page

Search results