public function getTopGames($limit = 10, $offset = 0)
    {
        if (!$this->isValidLimit($limit)) {
            throw new InvalidLimitException();
        }

        if (!$this->isValidOffset($offset)) {
            throw new InvalidOffsetException();
        }

        $params = [
            'limit' => $limit,
            'offset' => $offset,
        ];

        return $this->get('games/top', $params);
    }
public function getTopGames($limit = 10, $offset = 0)
    {
        if (!$this->isValidLimit($limit)) {
            throw new InvalidLimitException();
        }

        if (!$this->isValidOffset($offset)) {
            throw new InvalidOffsetException();
        }

        $params = [
            'limit' => $limit,
            'offset' => $offset,
        ];

        return $this->get('games/top', $params);
    }
public function getTopGames ( $ limit = 10 , $ offset = 0 ) { if ( ! $ this -> isValidLimit ( $ limit ) ) { throw new InvalidLimitException ( ) ; } if ( ! $ this -> isValidOffset ( $ offset ) ) { throw new InvalidOffsetException ( ) ; } $ params = [ 'limit' => $ limit , 'offset' => $ offset , ] ; return $ this -> get ( 'games/top' , $ params ) ; }
Get top games

@param int $limit
@param int $offset
@throws InvalidLimitException
@throws InvalidOffsetException
@return array|json
Get top games