protected buildClassPathWithPsr4 ( array $classNameParts, string $classPath, integer $packageNamespacePartCount ) : string | ||
$classNameParts | array | Parts of the FQ classname. |
$classPath | string | Already detected class path to a possible package. |
$packageNamespacePartCount | integer | Amount of parts of the className that is also part of the package namespace. |
return | string |
protected function buildClassPathWithPsr4($classNameParts, $classPath, $packageNamespacePartCount)
{
$fileName = implode('/', array_slice($classNameParts, $packageNamespacePartCount)) . '.php';
return $classPath . $fileName;
}