notifyParticipants = $notifyParticipants; } /** * @return Id */ public function getId() { return $this->id; } /** * @param Id $id */ public function setId(Id $id) { $this->id = $id; } /** * @return Collection */ public function getBookings() { return $this->bookings; } /** * @param Collection $bookings */ public function setBookings(Collection $bookings) { $this->bookings = $bookings; } /** * @return bool */ public function isNotifyParticipants() { return $this->notifyParticipants; } /** * @param bool $notifyParticipants */ public function setNotifyParticipants($notifyParticipants) { $this->notifyParticipants = $notifyParticipants; } /** * @return Description */ public function getInternalNotes() { return $this->internalNotes; } /** * @param Description $internalNotes */ public function setInternalNotes(Description $internalNotes) { $this->internalNotes = $internalNotes; } /** * @return BookingStatus */ public function getStatus() { return $this->status; } /** * @param BookingStatus $status */ public function setStatus(BookingStatus $status) { $this->status = $status; } /** * @return array */ public function toArray() { return [ 'id' => null !== $this->getId() ? $this->getId()->getValue() : null, 'bookings' => null !== $this->getBookings() ? $this->getBookings()->toArray() : null, 'notifyParticipants' => $this->isNotifyParticipants(), 'internalNotes' => null !== $this->getInternalNotes() ? $this->getInternalNotes()->getValue() : null, 'status' => $this->getStatus()->getValue(), ]; } }