ObjectMetadata
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
Metadata for a stored encrypted object.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $context : array<string, string>
- Map of values used to determine the encryption key.
- $environmentId : string
- Environment the object belongs to.
- $id : string
- Unique identifier of the object.
- $keyId : string
- Encryption key identifier.
- $updatedAt : DateTimeImmutable
- Timestamp of the last update.
- $updatedBy : Actor
- $versionId : string|null
- Current version identifier of the object.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$context
Map of values used to determine the encryption key.
public
array<string, string>
$context
$environmentId
Environment the object belongs to.
public
string
$environmentId
$id
Unique identifier of the object.
public
string
$id
$keyId
Encryption key identifier.
public
string
$keyId
$updatedAt
Timestamp of the last update.
public
DateTimeImmutable
$updatedAt
$updatedBy
public
Actor
$updatedBy
$versionId
Current version identifier of the object.
public
string|null
$versionId
= null
Methods
__construct()
public
__construct(array<string|int, mixed> $context, string $environmentId, string $id, string $keyId, DateTimeImmutable $updatedAt, Actor $updatedBy[, string|null $versionId = null ]) : mixed
Parameters
- $context : array<string|int, mixed>
- $environmentId : string
- $id : string
- $keyId : string
- $updatedAt : DateTimeImmutable
- $updatedBy : Actor
- $versionId : 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>