25 lines
448 B
PHP
25 lines
448 B
PHP
<?php
|
|
|
|
namespace Gaufrette\Adapter;
|
|
|
|
use Gaufrette\File;
|
|
use Gaufrette\Filesystem;
|
|
|
|
/**
|
|
* Interface for the file creation class.
|
|
*
|
|
* @author Leszek Prabucki <leszek.prabucki@gmail.com>
|
|
*/
|
|
interface FileFactory
|
|
{
|
|
/**
|
|
* Creates a new File instance and returns it.
|
|
*
|
|
* @param string $key
|
|
* @param Filesystem $filesystem
|
|
*
|
|
* @return File
|
|
*/
|
|
public function createFile($key, Filesystem $filesystem);
|
|
}
|