WordPress at a glance
function is not described

Automattic\Jetpack\Autoloader

ManifestGenerator::buildPsr4Manifest() private WC 1.0

Builds the contents for the PSR-4 manifest file.

{} It's a method of the class: ManifestGenerator{}

No Hooks.

Return

String|null. $manifestFile

Usage

$result = ManifestGenerator::buildPsr4Manifest( $fileName, $namespaces );
$fileName(string) (required)
The filename we are building.
$namespaces(array) (required)
The formatted PSR-4 data for the manifest.

Code of ManifestGenerator::buildPsr4Manifest() WC 5.3.0

<?php
private static function buildPsr4Manifest( $fileName, $namespaces ) {
	$fileContent = PHP_EOL;
	foreach ( $namespaces as $namespace => $data ) {
		$namespaceCode = var_export( $namespace, true );
		$versionCode   = var_export( $data['version'], true );
		$pathCode      = 'array( ' . implode( ', ', $data['path'] ) . ' )';
		$fileContent  .= <<<MANIFEST_CODE
$namespaceCode => array(
	'version' => $versionCode,
	'path'    => $pathCode
),
MANIFEST_CODE;
		$fileContent  .= PHP_EOL;
	}

	return self::buildFile( $fileName, $fileContent );
}