src/Module.php
public function getLeaderboardUserTotal($e)
    {
        $user = $e->getParam('user');

        $leaderboardService = $e->getTarget()
            ->getServiceManager()
            ->get(\PlaygroundReward\Service\LeaderBoard::class);
        $userPoints = $leaderboardService->getTotal($user);

        return $userPoints;
    }
public function getLeaderboardUserTotal($e)
    {
        $user = $e->getParam('user');

        $leaderboardService = $e->getTarget()
            ->getServiceManager()
            ->get(\PlaygroundReward\Service\LeaderBoard::class);
        $userPoints = $leaderboardService->getTotal($user);

        return $userPoints;
    }
public function getLeaderboardUserTotal ( $ e ) { $ user = $ e -> getParam ( 'user' ) ; $ leaderboardService = $ e -> getTarget ( ) -> getServiceManager ( ) -> get ( \ PlaygroundReward \ Service \ LeaderBoard :: class ) ; $ userPoints = $ leaderboardService -> getTotal ( $ user ) ; return $ userPoints ; }
This method get the points of a player in default leaderboard

@param  EventManager $e
@return array
This method get the points of a player in default leaderboard