. */ declare(strict_types=1); namespace FireflyIII\Import\Routine; use FireflyIII\Exceptions\FireflyException; use FireflyIII\Models\ImportJob; /** * Interface RoutineInterface */ interface RoutineInterface { /** * At the end of each run(), the import routine must set the job to the expected status. * * The final status of the routine must be "provider_finished". * * @throws FireflyException */ public function run(): void; /** * @param ImportJob $job * * @return void */ public function setJob(ImportJob $job): void; }