DomainEvents
- Full name:
\Codefy\Domain\EventSourcing\DomainEvents
- Parent class:
\Codefy\Domain\EventSourcing\DomainEventsArray
Inherited methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$events | array |
count
- This method is final.
createEmpty
- This method is static.
fromArray
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$events | array |
Throws:
withSingleEvent
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$event | \Codefy\Domain\EventSourcing\DomainEvent |
appendEvent
Parameters:
Parameter | Type | Description |
---|---|---|
$event | \Codefy\Domain\EventSourcing\DomainEvent |
appendEvents
Parameters:
Parameter | Type | Description |
---|---|---|
$more | self |
getIterator
toArray
Throws:
map
Parameters:
Parameter | Type | Description |
---|---|---|
$callback | callable |
Throws:
filter
Parameters:
Parameter | Type | Description |
---|---|---|
$callback | callable |
Throws:
getFirstEvent
isEmpty
Automatically generated on 2025-10-13