private static function getBundleContent(\stdClass $bundle): string
    {
        $bundleContent = '';
        switch ($bundle->type) {
            case 'sass':
            case 'scss':
                $bundleContent = self::getSassBundleContent($bundle);
                break;
            case 'css':
            case 'stylesheet':
            case 'javascript':
            case 'js':
                $bundleContent = self::getPlainBundleContent($bundle, true);
                break;
            default:
                $bundleContent = self::getPlainBundleContent($bundle);
                break;
        }
        
        return $bundleContent;
    }
private static function getBundleContent(\stdClass $bundle): string
    {
        $bundleContent = '';
        switch ($bundle->type) {
            case 'sass':
            case 'scss':
                $bundleContent = self::getSassBundleContent($bundle);
                break;
            case 'css':
            case 'stylesheet':
            case 'javascript':
            case 'js':
                $bundleContent = self::getPlainBundleContent($bundle, true);
                break;
            default:
                $bundleContent = self::getPlainBundleContent($bundle);
                break;
        }
        
        return $bundleContent;
    }
private static function getBundleContent ( \ stdClass $ bundle ) : string { $ bundleContent = '' ; switch ( $ bundle -> type ) { case 'sass' : case 'scss' : $ bundleContent = self :: getSassBundleContent ( $ bundle ) ; break ; case 'css' : case 'stylesheet' : case 'javascript' : case 'js' : $ bundleContent = self :: getPlainBundleContent ( $ bundle , true ) ; break ; default : $ bundleContent = self :: getPlainBundleContent ( $ bundle ) ; break ; } return $ bundleContent ; }
Get the full content of a bundle while detecting the appropriate actions to take to prepare the content for the type of the bundle.

@param \stdClass $bundle
The bundle to get the content of.

@return string The full content of a bundle after the actions for the specific bundle type have prepared the content.
Get the full content of a bundle while detecting the appropriate actions to take to prepare the content for the type of the bundle .