WorkOS PHP SDK

ApiKeyRevokedData
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

The event payload.

Table of Contents

Interfaces

JsonSerializable

Properties

$createdAt  : string
The timestamp when the API key was created.
$id  : string
Unique identifier of the API key.
$lastUsedAt  : string|null
The timestamp when the API key was last used.
$name  : string
The name of the API key.
$obfuscatedValue  : string
The obfuscated value of the API key.
$object  : string
Distinguishes the API key object.
$owner  : ApiKeyRevokedDataOwner
The owner of the API key.
$permissions  : array<string|int, string>
The permissions granted to the API key.
$updatedAt  : string
The timestamp when the API key was last updated.

Methods

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

Properties

$createdAt

The timestamp when the API key was created.

public string $createdAt

$lastUsedAt

The timestamp when the API key was last used.

public string|null $lastUsedAt

$obfuscatedValue

The obfuscated value of the API key.

public string $obfuscatedValue

$permissions

The permissions granted to the API key.

public array<string|int, string> $permissions

$updatedAt

The timestamp when the API key was last updated.

public string $updatedAt

Methods

__construct()

public __construct(string $object, string $id, ApiKeyRevokedDataOwner $owner, string $name, string $obfuscatedValue, string|null $lastUsedAt, array<string|int, mixed> $permissions, string $createdAt, string $updatedAt) : mixed
Parameters
$object : string
$id : string
$owner : ApiKeyRevokedDataOwner
$name : string
$obfuscatedValue : string
$lastUsedAt : string|null
$permissions : array<string|int, mixed>
$createdAt : string
$updatedAt : string

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