Fake jobs can be started and will crash.

This commit is contained in:
James Cole
2018-04-29 21:20:06 +02:00
parent f027d71136
commit f2b71bc280
10 changed files with 724 additions and 241 deletions

View File

@@ -22,33 +22,19 @@ declare(strict_types=1);
namespace FireflyIII\Import\Routine;
use FireflyIII\Exceptions\FireflyException;
use FireflyIII\Models\ImportJob;
use Illuminate\Support\Collection;
/**
* Interface RoutineInterface
*/
interface RoutineInterface
{
/**
* @return Collection
*/
public function getErrors(): Collection;
/**
* @return Collection
*/
public function getJournals(): Collection;
/**
* @return int
*/
public function getLines(): int;
/**
* @return bool
* @throws FireflyException
*/
public function run(): bool;
public function run(): void;
/**
* @param ImportJob $job