id; } /** * @param Id $id */ public function setId(Id $id) { $this->id = $id; } /** * @return Id */ public function getEventPeriodId() { return $this->eventPeriodId; } /** * @param Id $eventPeriodId */ public function setEventPeriodId(Id $eventPeriodId) { $this->eventPeriodId = $eventPeriodId; } /** * @return Id */ public function getCustomerBookingId() { return $this->customerBookingId; } /** * @param Id $customerBookingId */ public function setCustomerBookingId(Id $customerBookingId) { $this->customerBookingId = $customerBookingId; } /** * @return array */ public function toArray() { return [ 'id' => $this->getId() ? $this->getId()->getValue() : null, 'eventPeriodId' => $this->getEventPeriodId() ? $this->getEventPeriodId()->getValue() : null, 'customerBookingId' => $this->getCustomerBookingId() ? $this->getCustomerBookingId()->getValue() : null ]; } }