. */ namespace SP\Domain\Config\Ports; use SP\Domain\Common\Services\ServiceException; use SP\Infrastructure\File\FileException; /** * Interface ConfigBackupService */ interface ConfigBackupService { /** * Backs up the config data into the database */ public function backup(ConfigDataInterface $configData): void; /** * @throws FileException * @throws ServiceException */ public function restore(ConfigFileService $configFile): ConfigDataInterface; /** * @throws ServiceException */ public function getBackup(): string; }