ModuleUpdatedEvent
extends DomainEvent
in package
Describes a domain event
Table of Contents
Properties
- $endTime : DateTimeImmutable
- $startTime : DateTimeImmutable
- $aggregateId : string
- $aggregateType : string
- $eventId : string
- $occurredAt : DateTimeImmutable
- $version : int
Methods
- __construct() : mixed
- getEventType() : string
- Get event type identifier
- toArray() : array<string|int, mixed>
- Returns events contents as an array
- getPayload() : array<string|int, mixed>
- Returns payload
Properties
$endTime read-only
public
DateTimeImmutable
$endTime
$startTime read-only
public
DateTimeImmutable
$startTime
$aggregateId
protected
string
$aggregateId
Hooks
protected
string
get
$aggregateType
protected
string
$aggregateType
$eventId
protected
string
$eventId
Hooks
protected
string
get
$occurredAt
protected
DateTimeImmutable
$occurredAt
$version
protected
int
$version
= 1
Methods
__construct()
public
__construct(string $moduleId, DateTimeImmutable $startTime, DateTimeImmutable $endTime) : mixed
Parameters
- $moduleId : string
- $startTime : DateTimeImmutable
- $endTime : DateTimeImmutable
getEventType()
Get event type identifier
public
getEventType() : string
Tags
Return values
stringtoArray()
Returns events contents as an array
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>getPayload()
Returns payload
protected
getPayload() : array<string|int, mixed>