WorkOS PHP SDK

AuditLogSchema
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$actor  : AuditLogSchemaActor|null
The metadata schema for the actor.
$metadata  : array<string, mixed>|null
Optional JSON schema for event metadata.
$targets  : array<string|int, AuditLogSchemaTarget>
The list of targets for the schema.

Methods

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

Properties

$metadata

Optional JSON schema for event metadata.

public array<string, mixed>|null $metadata = null

Methods

__construct()

public __construct(array<string|int, mixed> $targets[, AuditLogSchemaActor|null $actor = null ][, array<string|int, mixed>|null $metadata = null ]) : mixed
Parameters
$targets : array<string|int, mixed>
$actor : AuditLogSchemaActor|null = null
$metadata : 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