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