AggregatePolicy

Extends \Ascmvc\EventSourcing\AggregateEventListener

Class AggregatePolicy

package

Ascmvc\EventSourcing

Methods

EventListener constructor.

__construct(\Ascmvc\EventSourcing\EventDispatcher $eventDispatcher) 
inherited

Arguments

Runs the EventListener class as a function.

__invoke(\Ascmvc\EventSourcing\Event\AggregateEvent $event) : \Generator
inherited

Arguments

Response

\Generator

Returns an instance of this class.

getInstance(\Ascmvc\EventSourcing\EventDispatcher $eventDispatcher) : \Ascmvc\EventSourcing\AggregateEventListener
inherited static

Aggregate Event listener method.

onAggregateEvent(\Ascmvc\EventSourcing\Event\AggregateEvent $event) : \Generator
inherited

Arguments

Response

\Generator

Event listener method.

onEvent(\Ascmvc\EventSourcing\Event\Event $event) : \Generator
inherited

Arguments

Response

\Generator

Properties

Contains an instance of the \Ascmvc\EventSourcing\EventDispatcher

eventDispatcher : \Ascmvc\EventSourcing\EventDispatcher
inherited

Contains the name of the aggregate root that created the event.

aggregateRootName : string
inherited
var

Type(s)

string