src/CodeGeneration/Filesystem/Factory/FileFactory.php
public function createFromNonExistantPath(string $path): File
    {
        $file = new File($path);
        if (true === $file->exists()) {
            throw new DoctrineStaticMetaException('File exists at ' . $path);
        }

        return $file;
    }
public function createFromNonExistantPath(string $path): File
    {
        $file = new File($path);
        if (true === $file->exists()) {
            throw new DoctrineStaticMetaException('File exists at ' . $path);
        }

        return $file;
    }
public function createFromNonExistantPath ( string $ path ) : File { $ file = new File ( $ path ) ; if ( true === $ file -> exists ( ) ) { throw new DoctrineStaticMetaException ( 'File exists at ' . $ path ) ; } return $ file ; }
Create a new file object that should not already exist at the specified path

@param string $path

@return File
@throws DoctrineStaticMetaException
Create a new file object that should not already exist at the specified path