setId(new Id($data['id'])); } if (!empty($data['eventPeriodId'])) { $customerBookingEventPeriod->setEventPeriodId(new Id($data['eventPeriodId'])); } if (!empty($data['customerBookingId'])) { $customerBookingEventPeriod->setCustomerBookingId(new Id($data['customerBookingId'])); } return $customerBookingEventPeriod; } }