src/Stats.php
private function parseStatItem($stat): array {
        //
        // Example stat name:
        // br_placetop5_ps4_m0_p10
        // {type}_{name}_{platform}_{??}_{mode (squads/solo/duo)}
        // 
        $result = [];
        $pieces = explode("_", $stat->name);
        $result[$pieces[2]][$pieces[4]][$pieces[1]] = $stat->value;
        return $result;
    }
private function parseStatItem($stat): array {
        //
        // Example stat name:
        // br_placetop5_ps4_m0_p10
        // {type}_{name}_{platform}_{??}_{mode (squads/solo/duo)}
        // 
        $result = [];
        $pieces = explode("_", $stat->name);
        $result[$pieces[2]][$pieces[4]][$pieces[1]] = $stat->value;
        return $result;
    }
Parses a stat string into a mapped array.
@param  string $stat The stat string
@return array        The mapped stat array