. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Module; use Fisharebest\Webtrees\GedcomRecord; use Fisharebest\Webtrees\Tree; use Illuminate\Support\Collection; /** * Interface ModuleDataFixInterface - Classes and libraries for module system */ interface ModuleDataFixInterface extends ModuleInterface { /** * Options form. * * @param Tree $tree * * @return string */ public function fixOptions(Tree $tree): string; /** * A combined list of all records that might need fixing. * * @param Tree $tree * @param array $params * * @return Collection */ public function recordsToFix(Tree $tree, array $params): Collection; /** * Does a record need updating? * * @param GedcomRecord $record * @param array $params * * @return bool */ public function doesRecordNeedUpdate(GedcomRecord $record, array $params): bool; /** * Show the changes we would make * * @param GedcomRecord $record * @param array $params * * @return string */ public function previewUpdate(GedcomRecord $record, array $params): string; /** * Fix a record * * @param GedcomRecord $record * @param array $params * * @return void */ public function updateRecord(GedcomRecord $record, array $params): void; }