src/CodeGeneration/Filesystem/Factory/FileFactory.php
public function createFromFqn(string $fqn, $srcOrTestSubFolder = CreatorInterface::SRC_FOLDER): File
    {
        list($className, , $subDirectories) = $this->namespaceHelper->parseFullyQualifiedName(
            $fqn,
            $srcOrTestSubFolder,
            $this->projectRootNamespace
        );
        $path = $this->projectRootDirectory
                . '/' . implode('/', $subDirectories) . '/' . $className . '.php';

        return new File($path);
    }
public function createFromFqn(string $fqn, $srcOrTestSubFolder = CreatorInterface::SRC_FOLDER): File
    {
        list($className, , $subDirectories) = $this->namespaceHelper->parseFullyQualifiedName(
            $fqn,
            $srcOrTestSubFolder,
            $this->projectRootNamespace
        );
        $path = $this->projectRootDirectory
                . '/' . implode('/', $subDirectories) . '/' . $className . '.php';

        return new File($path);
    }
public function createFromFqn ( string $ fqn , $ srcOrTestSubFolder = CreatorInterface :: SRC_FOLDER ) : File { list ( $ className , , $ subDirectories ) = $ this -> namespaceHelper -> parseFullyQualifiedName ( $ fqn , $ srcOrTestSubFolder , $ this -> projectRootNamespace ) ; $ path = $ this -> projectRootDirectory . '/' . implode ( '/' , $ subDirectories ) . '/' . $ className . '.php' ; return new File ( $ path ) ; }
Create a new file object from a fully qualified name, may or may not exist

@param string $fqn
@param string $srcOrTestSubFolder

@return File
@throws DoctrineStaticMetaException
Create a new file object from a fully qualified name may or may not exist