ReadModel

Extends \Ascmvc\EventSourcing\EventListener

Class ReadModel

package

Ascmvc\EventSourcing

Methods

Policy constructor.

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

Arguments

Returns an instance of this class.

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

Event listener method.

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

Executes a command in order to read from the domain model.

read() : mixed

Response

mixed

Properties

Contains an instance of the \Ascmvc\EventSourcing\EventDispatcher

eventDispatcher : \Ascmvc\EventSourcing\EventDispatcher
inherited