/** * Set notification manager (required) * * @param \src\notification\manager $notification_manager */ public function set_notification_manager(\src\notification\manager $notification_manager) { $this->notification_manager = $notification_manager; $this->notification_type_id = $this->notification_manager->get_notification_type_id($this->get_type()); }