src/Api/Trophy.php
public static function calculateTrophies(object $trophyTypes) : int	
    {	
        return ($trophyTypes->bronze + $trophyTypes->silver + $trophyTypes->gold + $trophyTypes->platinum);	
    }
public static function calculateTrophies(object $trophyTypes) : int	
    {	
        return ($trophyTypes->bronze + $trophyTypes->silver + $trophyTypes->gold + $trophyTypes->platinum);	
    }
public static function calculateTrophies ( object $ trophyTypes ) : int { return ( $ trophyTypes -> bronze + $ trophyTypes -> silver + $ trophyTypes -> gold + $ trophyTypes -> platinum ) ; }
Calculate all the types of Trophies.

@param object $trophyTypes Trophy type information.
@return integer
Calculate all the types of Trophies .