for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DDDominio\EventSourcing\EventStore\Projection;
use DDDominio\EventSourcing\Common\DomainEvent;
class Projector
{
/**
* @var array
*/
private $emittedEventsByStream = [];
* @param string $stream
* @param mixed $event
public function emit($stream, $event)
$this->emittedEventsByStream[$stream][] = DomainEvent::record($event);
}
* @return array
public function emittedEventsByStream()
return $this->emittedEventsByStream;