public static function convertMapToUserProfile($userProfileMap)
    {
        $userId = $userProfileMap[self::USER_ID_KEY];
        $experimentBucketMap = array();
        foreach ($userProfileMap[self::EXPERIMENT_BUCKET_MAP_KEY] as $experimentId => $decisionMap) {
            $variationId = $decisionMap[self::VARIATION_ID_KEY];
            $experimentBucketMap[$experimentId] = new Decision($variationId);
        }

        return new UserProfile($userId, $experimentBucketMap);
    }
public static function convertMapToUserProfile($userProfileMap)
    {
        $userId = $userProfileMap[self::USER_ID_KEY];
        $experimentBucketMap = array();
        foreach ($userProfileMap[self::EXPERIMENT_BUCKET_MAP_KEY] as $experimentId => $decisionMap) {
            $variationId = $decisionMap[self::VARIATION_ID_KEY];
            $experimentBucketMap[$experimentId] = new Decision($variationId);
        }

        return new UserProfile($userId, $experimentBucketMap);
    }
public static function convertMapToUserProfile ( $ userProfileMap ) { $ userId = $ userProfileMap [ self :: USER_ID_KEY ] ; $ experimentBucketMap = array ( ) ; foreach ( $ userProfileMap [ self :: EXPERIMENT_BUCKET_MAP_KEY ] as $ experimentId => $ decisionMap ) { $ variationId = $ decisionMap [ self :: VARIATION_ID_KEY ] ; $ experimentBucketMap [ $ experimentId ] = new Decision ( $ variationId ) ; } return new UserProfile ( $ userId , $ experimentBucketMap ) ; }
Convert the given user profile map into a UserProfile object.

@param $userProfileMap array

@return UserProfile The user profile object constructed from the given map.
Convert the given user profile map into a UserProfile object .