<?php
declare(strict_types=1); namespace App\Interfaces; interface FileSystemInterface { public function read(string $path): string; public function write(string $path, string $content): void; public function exists(string $path): bool; public function list(string $directory): array; public function prepare(string $path, string $content): void; public function commit(string $path): void; public function rollback(string $path): void; public function delete(string $path): void; public function writeAbsolute(string $path, string $content): void; public function prepareAbsolute(string $path, string $content): void; public function commitAbsolute(string $path): void; public function rollbackAbsolute(string $path): void; public function acquireLock(string $name): void; public function releaseLock(string $name): void; } 