. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Contracts; use Fisharebest\Webtrees\Tree; use League\Flysystem\FilesystemOperator; /** * Make a filesystem. */ interface FilesystemFactoryInterface { /** * Describe a filesystem for the user's data folder. * * @return string */ public function dataName(): string; /** * Create a filesystem for the user's data folder. * * @param string $path_prefix * * @return FilesystemOperator */ public function data(string $path_prefix = ''): FilesystemOperator; /** * Create a filesystem for the application's root folder. * * @param string $path_prefix * * @return FilesystemOperator */ public function root(string $path_prefix = ''): FilesystemOperator; /** * Describe a filesystem for the application's root folder. * * @return string */ public function rootName(): string; }