AuditLogEvent
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
Table of Contents
Interfaces
- JsonSerializable
Properties
- $action : string
- Identifier of what happened.
- $actor : AuditLogEventActor
- The entity that performed the action.
- $context : AuditLogEventContext
- Additional context about where and how the action occurred.
- $metadata : array<string, string|float|bool>|null
- Additional data associated with the event or entity.
- $occurredAt : DateTimeImmutable
- ISO-8601 value of when the action occurred.
- $targets : array<string|int, AuditLogEventTarget>
- The resources affected by the action.
- $version : int|null
- What schema version the event is associated with.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$action
Identifier of what happened.
public
string
$action
$actor
The entity that performed the action.
public
AuditLogEventActor
$actor
$context
Additional context about where and how the action occurred.
public
AuditLogEventContext
$context
$metadata
Additional data associated with the event or entity.
public
array<string, string|float|bool>|null
$metadata
= null
$occurredAt
ISO-8601 value of when the action occurred.
public
DateTimeImmutable
$occurredAt
$targets
The resources affected by the action.
public
array<string|int, AuditLogEventTarget>
$targets
$version
What schema version the event is associated with.
public
int|null
$version
= null
Methods
__construct()
public
__construct(string $action, DateTimeImmutable $occurredAt, AuditLogEventActor $actor, array<string|int, mixed> $targets, AuditLogEventContext $context[, array<string|int, mixed>|null $metadata = null ][, int|null $version = null ]) : mixed
Parameters
- $action : string
- $occurredAt : DateTimeImmutable
- $actor : AuditLogEventActor
- $targets : array<string|int, mixed>
- $context : AuditLogEventContext
- $metadata : array<string|int, mixed>|null = null
- $version : int|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>