Split the importer and the setup routine.

This commit is contained in:
James Cole
2016-08-06 06:28:21 +02:00
parent 5a9cf698f7
commit d4510440b8
4 changed files with 120 additions and 92 deletions

View File

@@ -10,9 +10,25 @@
declare(strict_types = 1);
namespace FireflyIII\Import\Importer;
use FireflyIII\Models\ImportJob;
/**
* Interface ImporterInterface
*
* @package FireflyIII\Import\Importer
*/
interface ImporterInterface
{
/**
* Run the actual import
*
* @return bool
*/
public function start(): bool;
/**
* @param ImportJob $job
*
*/
public function setJob(ImportJob $job);
}