private function getPathMap (array $namespaces) : array
    {
        $pathMap = [];

        foreach ($namespaces as $namespace => $path)
        {
            $pathMap[$path] = 1 + ($pathMap[$path] ?? 0);
        }

        return $pathMap;
    }
private function getPathMap (array $namespaces) : array
    {
        $pathMap = [];

        foreach ($namespaces as $namespace => $path)
        {
            $pathMap[$path] = 1 + ($pathMap[$path] ?? 0);
        }

        return $pathMap;
    }
private function getPathMap ( array $ namespaces ) : array { $ pathMap = [ ] ; foreach ( $ namespaces as $ namespace => $ path ) { $ pathMap [ $ path ] = 1 + ( $ pathMap [ $ path ] ?? 0 ) ; } return $ pathMap ; }
Returns the path map.
It contains the mapping from relative paths to how often they are registered.

@return array
Returns the path map . It contains the mapping from relative paths to how often they are registered .