protected function buildClassPathWithPsr4(array $classNameParts, string $classPath, int $packageNamespacePartCount): string
    {
        $fileName = implode('/', array_slice($classNameParts, $packageNamespacePartCount)) . '.php';

        return $classPath . $fileName;
    }
protected function buildClassPathWithPsr4(array $classNameParts, string $classPath, int $packageNamespacePartCount): string
    {
        $fileName = implode('/', array_slice($classNameParts, $packageNamespacePartCount)) . '.php';

        return $classPath . $fileName;
    }
protected function buildClassPathWithPsr4 ( array $ classNameParts , string $ classPath , int $ packageNamespacePartCount ) : string { $ fileName = implode ( '/' , array_slice ( $ classNameParts , $ packageNamespacePartCount ) ) . '.php' ; return $ classPath . $ fileName ; }
Try to build a path to a class according to PSR-4 rules.

@param array $classNameParts Parts of the FQ classname.
@param string $classPath Already detected class path to a possible package.
@param integer $packageNamespacePartCount Amount of parts of the className that is also part of the package namespace.
@return string
Try to build a path to a class according to PSR - 4 rules .