EventStream
- Full name:
\Codefy\Domain\EventSourcing\EventStream - Parent class:
\Codefy\Domain\EventSourcing\DomainEvents
Properties
aggregateId
Methods
__construct
public __construct(\Codefy\Domain\Aggregate\AggregateId $aggregateId, \Codefy\Domain\EventSourcing\DomainEvent[] $events): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$aggregateId | \Codefy\Domain\Aggregate\AggregateId | |
$events | \Codefy\Domain\EventSourcing\DomainEvent[] |
Throws:
aggregateId
Inherited methods
__construct
Parameters:
| Parameter | Type | Description |
|---|---|---|
$events | \Codefy\Domain\EventSourcing\DomainEvent[] |
count
- This method is final.
createEmpty
- This method is static.
fromArray
- This method is static. Parameters:
| Parameter | Type | Description |
|---|---|---|
$events | \Codefy\Domain\EventSourcing\DomainEvent[] |
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 |
filter
Parameters:
| Parameter | Type | Description |
|---|---|---|
$callback | callable |