name = $name; $this->status = $status; $this->type = $type; $this->entity = $entity; $this->sendTo = $sendTo; $this->subject = $subject; $this->content = $content; } /** * @return Id */ public function getId() { return $this->id; } /** * @param Id $id */ public function setId(Id $id) { $this->id = $id; } /** * @return Name */ public function getName() { return $this->name; } /** * @param Name $name */ public function setName(Name $name) { $this->name = $name; } /** * @return NotificationStatus */ public function getStatus() { return $this->status; } /** * @param NotificationStatus $status */ public function setStatus(NotificationStatus $status) { $this->status = $status; } /** * @return NotificationType */ public function getType() { return $this->type; } /** * @param NotificationType $type */ public function setType(NotificationType $type) { $this->type = $type; } /** * @return BookingType */ public function getEntity() { return $this->entity; } /** * @param BookingType $entity */ public function setEntity(BookingType $entity) { $this->entity = $entity; } /** * @return TimeOfDay */ public function getTime() { return $this->time; } /** * @param TimeOfDay $time */ public function setTime($time) { $this->time = $time; } /** * @return Duration */ public function getTimeBefore() { return $this->timeBefore; } /** * @param Duration $timeBefore */ public function setTimeBefore($timeBefore) { $this->timeBefore = $timeBefore; } /** * @return Duration */ public function getTimeAfter() { return $this->timeAfter; } /** * @param Duration $timeAfter */ public function setTimeAfter($timeAfter) { $this->timeAfter = $timeAfter; } /** * @return NotificationSendTo */ public function getSendTo() { return $this->sendTo; } /** * @param NotificationSendTo $sendTo */ public function setSendTo(NotificationSendTo $sendTo) { $this->sendTo = $sendTo; } /** * @return Name */ public function getSubject() { return $this->subject; } /** * @param Name $subject */ public function setSubject(Name $subject) { $this->subject = $subject; } /** * @return Html */ public function getContent() { return $this->content; } /** * @param Html $content */ public function setContent(Html $content) { $this->content = $content; } /** * @return array */ public function toArray() { return [ 'id' => null !== $this->getId() ? $this->getId()->getValue() : null, 'name' => $this->getName()->getValue(), 'status' => $this->getStatus()->getValue(), 'type' => $this->getType()->getValue(), 'entity' => $this->getEntity()->getValue(), 'time' => null !== $this->getTime() ? $this->getTime()->getValue() : null, 'timeBefore' => null !== $this->getTimeBefore() ? $this->getTimeBefore()->getValue() : null, 'timeAfter' => null !== $this->getTimeAfter() ? $this->getTimeAfter()->getValue() : null, 'sendTo' => $this->getSendTo()->getValue(), 'subject' => $this->getSubject()->getValue(), 'content' => $this->getContent()->getValue() ]; } }