WorkOS PHP SDK

RoleDeletedData
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

The event payload.

Table of Contents

Interfaces

JsonSerializable

Properties

$createdAt  : DateTimeImmutable
An ISO 8601 timestamp.
$object  : string
Distinguishes the role object.
$permissions  : array<string|int, string>|null
The permissions granted by the role.
$resourceTypeSlug  : string
The slug of the resource type the role applies to.
$slug  : string
The slug identifier of the role.
$updatedAt  : DateTimeImmutable
An ISO 8601 timestamp.

Methods

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

Properties

$createdAt

An ISO 8601 timestamp.

public DateTimeImmutable $createdAt

$permissions

The permissions granted by the role.

public array<string|int, string>|null $permissions = null

$resourceTypeSlug

The slug of the resource type the role applies to.

public string $resourceTypeSlug

$updatedAt

An ISO 8601 timestamp.

public DateTimeImmutable $updatedAt

Methods

__construct()

public __construct(string $object, string $slug, string $resourceTypeSlug, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt[, array<string|int, mixed>|null $permissions = null ]) : mixed
Parameters
$object : string
$slug : string
$resourceTypeSlug : string
$createdAt : DateTimeImmutable
$updatedAt : DateTimeImmutable
$permissions : array<string|int, mixed>|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