EventEnvelope
in package
Read onlyYes
FinalYes
Tags
Table of Contents
Properties
- $event : object
- $eventType : string
- $metadata : array<string|int, mixed>
- $persistenceId : PersistenceId
- $sequenceNr : int
- $timestamp : DateTimeImmutable
- $writerId : Ulid
Methods
- __construct() : mixed
- withMetadata() : self
Properties
$event
public
object
$event
$eventType
public
string
$eventType
$metadata
public
array<string|int, mixed>
$metadata
= []
$persistenceId
public
PersistenceId
$persistenceId
$sequenceNr
public
int
$sequenceNr
$timestamp
public
DateTimeImmutable
$timestamp
$writerId
public
Ulid
$writerId
= new Ulid()
Methods
__construct()
public
__construct(PersistenceId $persistenceId, int $sequenceNr, object $event, string $eventType, DateTimeImmutable $timestamp[, Ulid $writerId = new Ulid() ][, array<string, mixed> $metadata = [] ]) : mixed
Parameters
- $persistenceId : PersistenceId
- $sequenceNr : int
- $event : object
- $eventType : string
- $timestamp : DateTimeImmutable
- $writerId : Ulid = new Ulid()
- $metadata : array<string, mixed> = []
withMetadata()
public
withMetadata(array<string, mixed> $metadata) : self
Parameters
- $metadata : array<string, mixed>