/** * Set the Notification Type * * @param NotificationType $type * @return void */ private function setType(NotificationType $type) { $this->type = $type->tag(); }