/** * @param AggregateRoot $aggregateRoot * @param int $expectedPlayHead * @return void * @throws ConcurrencyException */ public function store(AggregateRoot $aggregateRoot, int $expectedPlayHead = -1) { $this->eventStore->save($aggregateRoot->getId(), $this->factory->getAggregateType(), $aggregateRoot->getUncommittedChanges(), $expectedPlayHead); $aggregateRoot->markChangesCommitted(); }
/** */ public function __construct() { parent::__construct(); }
/** * @param AggregateRoot $aggregate */ public function replayEventsByAggregate(AggregateRoot $aggregate) { $this->replayEventsByAggregateId($aggregate->getId()); }
/** */ protected function __construct() { parent::__construct(); $this->isDone = false; }
public function applyChange(Event $event) { parent::applyChange($event); }
/** * @param Identity $id */ protected function __construct(\Apha\Domain\Identity $id) { $this->id = $id; parent::__construct(); }