. */ namespace SP\Domain\File\Ports; use SP\Infrastructure\File\FileException; /** * Class ArchiveHandler */ interface ArchiveHandlerInterface { /** * Realizar un backup de la aplicación y comprimirlo. * * @throws FileException */ public function compressDirectory(string $directory, ?string $regex = null): void; /** * Realizar un backup de la aplicación y comprimirlo. * * @return string The path to the file * @throws FileException */ public function compressFile(string $file): string; }