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
$actor
The metadata schema for the actor.
public
AuditLogSchemaActor|null
$actor
= null
$metadata
Optional JSON schema for event metadata.
public
array<string, mixed>|null
$metadata
= null
$targets
The list of targets for the schema.
public
array<string|int, AuditLogSchemaTarget>
$targets
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
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>