Nexus API Reference

EventEnvelope
in package

Read onlyYes
FinalYes
Tags
psalm-api

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

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>
Return values
self
On this page

Search results