src/CodeGeneration/Filesystem/File/Writer.php
public function write(File $file): string
    {
        $this->createDirectoryIfRequired($file);
        $file->create();
        $file->putContents();

        return $file->getPath();
    }
public function write(File $file): string
    {
        $this->createDirectoryIfRequired($file);
        $file->create();
        $file->putContents();

        return $file->getPath();
    }
public function write ( File $ file ) : string { $ this -> createDirectoryIfRequired ( $ file ) ; $ file -> create ( ) ; $ file -> putContents ( ) ; return $ file -> getPath ( ) ; }
Write a file object to the filesystem and return the created path

@param File $file

@return string
@throws \EdmondsCommerce\DoctrineStaticMeta\Exception\DoctrineStaticMetaException
Write a file object to the filesystem and return the created path