예제 #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();
 }
예제 #2
0
 /**
  */
 public function __construct()
 {
     parent::__construct();
 }
예제 #3
0
 /**
  * @param AggregateRoot $aggregate
  */
 public function replayEventsByAggregate(AggregateRoot $aggregate)
 {
     $this->replayEventsByAggregateId($aggregate->getId());
 }
예제 #4
0
파일: ToDoItem.php 프로젝트: martyn82/apha
 /**
  */
 protected function __construct()
 {
     parent::__construct();
     $this->isDone = false;
 }
예제 #5
0
 public function applyChange(Event $event)
 {
     parent::applyChange($event);
 }
예제 #6
0
파일: User.php 프로젝트: martyn82/apha
 /**
  * @param Identity $id
  */
 protected function __construct(\Apha\Domain\Identity $id)
 {
     $this->id = $id;
     parent::__construct();
 }