for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Gica\Cqrs\EventStore;
use Gica\Cqrs\Event\EventWithMetaData;
class EventsCommit
{
/**
* @var int
*/
private $sequence;
private $version;
* @var EventWithMetaData[]
private $eventsWithMetadata;
public function __construct(
int $sequence,
int $version,
array $eventsWithMetadata
)
$this->sequence = $sequence;
$this->version = $version;
$this->eventsWithMetadata = $eventsWithMetadata;
}
* @return int
public function getSequence(): int
return $this->sequence;
public function getVersion(): int
return $this->version;
* @return EventWithMetaData[]
public function getEventsWithMetadata(): array
return $this->eventsWithMetadata;