コード例 #1
0
 public static function fromDomainEvent(DomainEvent $domainEvent)
 {
     $dbEvent = new DbEvent();
     $dbEvent->setId($domainEvent->getId());
     $dbEvent->setTitle($domainEvent->getTitle());
     $dbEvent->setDateWithTimeRange(DbDateWithTimeRangeFactory::fromDomainDateWithRimeRange($domainEvent->getScheduledDateWithTimeRange()));
     return $dbEvent;
 }