DomainEventsArray
- Full name:
\Codefy\Domain\EventSourcing\DomainEventsArray - This class implements:
\Countable,\IteratorAggregate - This class is an Abstract class
Properties
events
iterator
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