app); $pref = $user->get_notifications_preference($this->app, $class); return null !== $pref ? $pref : 1; } protected function shouldSendNotificationFor($usr_id) { return 0 !== (int) $this->get_prefs(get_class($this), $usr_id); } }