public function getUserNotificationSetting(User $user, $name, $default = true)
    {
        if (false === $user->getNotificationSettings()->containsKey($name)) {
            return $default;
        }

        return $user->getNotificationSettings()->get($name)->getValue();
    }
public function getUserNotificationSetting(User $user, $name, $default = true)
    {
        if (false === $user->getNotificationSettings()->containsKey($name)) {
            return $default;
        }

        return $user->getNotificationSettings()->get($name)->getValue();
    }
public function getUserNotificationSetting ( User $ user , $ name , $ default = true ) { if ( false === $ user -> getNotificationSettings ( ) -> containsKey ( $ name ) ) { return $ default ; } return $ user -> getNotificationSettings ( ) -> get ( $ name ) -> getValue ( ) ; }
Return a user notification setting given a user.

@param User   $user
@param string $name
@param mixed  $default

@return mixed
Return a user notification setting given a user .