Nexus API Reference

EventEntry
in package

FinalYes
Tags
psalm-api
Attributes
#[Entity]
#[Index]
$name: 'idx_event_journal_pid'
$columns: ['persistence_id']
#[Table]
$name: 'nexus_event_journal'

Table of Contents

Properties

$eventData  : string
$eventType  : string
$metadata  : string|null
$persistenceId  : string
$sequenceNr  : int
$timestamp  : DateTimeImmutable
$writerId  : string

Methods

__construct()  : mixed

Properties

$eventData

public private(set) string $eventData
Attributes
#[Column]
$name: 'event_data'
$type: 'text'

$eventType

public private(set) string $eventType
Attributes
#[Column]
$name: 'event_type'
$type: 'string'
$length: 255

$metadata

public private(set) string|null $metadata = null
Attributes
#[Column]
$name: 'metadata'
$type: 'text'
$nullable: true

$persistenceId

public private(set) string $persistenceId
Attributes
#[Column]
$name: 'persistence_id'
$type: 'string'
$length: 255
#[Id]

$sequenceNr

public private(set) int $sequenceNr
Attributes
#[Column]
$name: 'sequence_nr'
$type: 'bigint'
#[Id]

$timestamp

public private(set) DateTimeImmutable $timestamp
Attributes
#[Column]
$name: 'timestamp'
$type: 'datetime_immutable'

$writerId

public private(set) string $writerId = ''
Attributes
#[Column]
$name: 'writer_id'
$type: 'string'
$length: 26

Methods

__construct()

public __construct(string $persistenceId, int $sequenceNr, string $eventType, string $eventData, DateTimeImmutable $timestamp[, string $writerId = '' ][, string|null $metadata = null ]) : mixed
Parameters
$persistenceId : string
$sequenceNr : int
$eventType : string
$eventData : string
$timestamp : DateTimeImmutable
$writerId : string = ''
$metadata : string|null = null
On this page

Search results