. */ namespace SP\Domain\Config; use SP\Domain\Common\Services\ServiceException; use SP\Domain\Config\In\ConfigDataInterface; 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(): ConfigDataInterface; /** * @throws \SP\Domain\Common\Services\ServiceException */ public function getBackup(): string; }