EventStream
- Full name:
\Codefy\Domain\EventSourcing\EventStream
- Parent class:
\Codefy\Domain\EventSourcing\DomainEvents
Properties
aggregateId
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$aggregateId | \Codefy\Domain\Aggregate\AggregateId | |
$events | array |
Throws:
aggregateId
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