AuditLogExportJson
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
Table of Contents
Interfaces
- JsonSerializable
Properties
- $createdAt : DateTimeImmutable
- An ISO 8601 timestamp.
- $id : string
- The unique ID of the Audit Log Export.
- $object : string
- Distinguishes the Audit Log Export object.
- $state : AuditLogExportJsonState
- The state of the export. Possible values: pending, ready, error.
- $updatedAt : DateTimeImmutable
- An ISO 8601 timestamp.
- $url : string|null
- A URL to the CSV file. Only defined when the Audit Log Export is ready.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$createdAt
An ISO 8601 timestamp.
public
DateTimeImmutable
$createdAt
$id
The unique ID of the Audit Log Export.
public
string
$id
$object
Distinguishes the Audit Log Export object.
public
string
$object
$state
The state of the export. Possible values: pending, ready, error.
public
AuditLogExportJsonState
$state
$updatedAt
An ISO 8601 timestamp.
public
DateTimeImmutable
$updatedAt
$url
A URL to the CSV file. Only defined when the Audit Log Export is ready.
public
string|null
$url
= null
Methods
__construct()
public
__construct(string $object, string $id, AuditLogExportJsonState $state, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt[, string|null $url = null ]) : mixed
Parameters
- $object : string
- $id : string
- $state : AuditLogExportJsonState
- $createdAt : DateTimeImmutable
- $updatedAt : DateTimeImmutable
- $url : string|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>