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

        return $file;
    }
public function createFromExistingPath(string $path): File
    {
        $file = new File($path);
        if (false === $file->exists()) {
            throw new DoctrineStaticMetaException('File does not exist at ' . $path);
        }

        return $file;
    }
public function createFromExistingPath ( string $ path ) : File { $ file = new File ( $ path ) ; if ( false === $ file -> exists ( ) ) { throw new DoctrineStaticMetaException ( 'File does not exist at ' . $ path ) ; } return $ file ; }
Create a new file object from an existing file path

@param string $path

@return File
@throws DoctrineStaticMetaException
Create a new file object from an existing file path