flag_read = false; $this->date_create = new DateTime(); } public function getID() { return $this->id; } public function setDateCreate(DateTime $date_create) { $this->date_create = $date_create; return $this; } public function getDateCreate() { return $this->date_create; } public function setMessage($message) { $this->message = $message; return $this; } public function getMessage() { return $this->message; } public function isNotificationRead() { return $this->flag_read; } public function setReadNotification($bool = true) { $this->flag_read = $bool; return $this; } public function setUser(User $user) { $this->user = $user; return $this; } public function getUser() { return $this->user; } public function setJobOrder(JobOrder $jo) { $this->job_order = $jo; return $this; } public function getJobOrder() { return $this->job_order; } public function setNotificationType($notif_type) { $this->notif_type = $notif_type; return $this; } public function getNotificationType() { return $this->notif_type; } public function getNotificationTypeName() { return NotificationType::getName($this->notif_type); } }