ModuleToggledEvent
extends DomainEvent
in package
Describes a domain event
Table of Contents
Properties
- $aggregateId : string
- $aggregateType : string
- $eventId : string
- $occurredAt : DateTimeImmutable
- $version : int
- $isActive : bool
- $moduleId : string
Methods
- __construct() : mixed
- Constructor
- 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
$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
$isActive
private
bool
$isActive
$moduleId
private
string
$moduleId
Methods
__construct()
Constructor
public
__construct(string $moduleId, bool $isActive) : mixed
Parameters
- $moduleId : string
-
ID of module being approved
- $isActive : bool
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>