ObjectVersion
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
A static snapshot of an encrypted object.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $createdAt : DateTimeImmutable
- Timestamp when the version was created.
- $currentVersion : bool
- Whether this is the active version.
- $etag : string
- Hash of the object value.
- $id : string
- Unique identifier of the version.
- $size : int
- Number of bytes of stored data.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$createdAt
Timestamp when the version was created.
public
DateTimeImmutable
$createdAt
$currentVersion
Whether this is the active version.
public
bool
$currentVersion
$etag
Hash of the object value.
public
string
$etag
$id
Unique identifier of the version.
public
string
$id
$size
Number of bytes of stored data.
public
int
$size
Methods
__construct()
public
__construct(DateTimeImmutable $createdAt, bool $currentVersion, string $etag, string $id, int $size) : mixed
Parameters
- $createdAt : DateTimeImmutable
- $currentVersion : bool
- $etag : string
- $id : string
- $size : int
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>