Esempio n. 1
0
 /**
  * @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();
 }
Esempio n. 3
0
 /**
  * @param AggregateRoot $aggregate
  */
 public function replayEventsByAggregate(AggregateRoot $aggregate)
 {
     $this->replayEventsByAggregateId($aggregate->getId());
 }
Esempio n. 4
0
 /**
  */
 protected function __construct()
 {
     parent::__construct();
     $this->isDone = false;
 }
Esempio n. 5
0
 public function applyChange(Event $event)
 {
     parent::applyChange($event);
 }
Esempio n. 6
0
 /**
  * @param Identity $id
  */
 protected function __construct(\Apha\Domain\Identity $id)
 {
     $this->id = $id;
     parent::__construct();
 }