2017-06-10 15:09:41 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2019-10-02 06:37:26 +02:00
|
|
|
* FileConfigurationInterface.php
|
|
|
|
* Copyright (c) 2019 thegrumpydictator@gmail.com
|
2017-06-10 15:09:41 +02:00
|
|
|
*
|
2019-10-02 06:37:26 +02:00
|
|
|
* This file is part of Firefly III (https://github.com/firefly-iii).
|
2017-10-21 08:40:00 +02:00
|
|
|
*
|
2019-10-02 06:37:26 +02:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
2017-10-21 08:40:00 +02:00
|
|
|
*
|
2019-10-02 06:37:26 +02:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
2017-10-21 08:40:00 +02:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2019-10-02 06:37:26 +02:00
|
|
|
* GNU Affero General Public License for more details.
|
2017-10-21 08:40:00 +02:00
|
|
|
*
|
2019-10-02 06:37:26 +02:00
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2017-06-10 15:09:41 +02:00
|
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2018-05-21 07:22:38 +02:00
|
|
|
namespace FireflyIII\Support\Import\JobConfiguration\File;
|
2017-06-10 15:09:41 +02:00
|
|
|
|
|
|
|
use FireflyIII\Models\ImportJob;
|
2018-05-06 07:09:08 +02:00
|
|
|
use Illuminate\Support\MessageBag;
|
2017-06-10 15:09:41 +02:00
|
|
|
|
|
|
|
/**
|
2018-05-21 09:40:19 +02:00
|
|
|
* Class FileConfigurationInterface.
|
2017-06-10 15:09:41 +02:00
|
|
|
*/
|
2018-05-21 09:40:19 +02:00
|
|
|
interface FileConfigurationInterface
|
2017-06-10 15:09:41 +02:00
|
|
|
{
|
|
|
|
/**
|
2018-05-06 16:19:29 +02:00
|
|
|
* Store data associated with current stage.
|
2017-06-10 15:09:41 +02:00
|
|
|
*
|
2018-05-06 16:19:29 +02:00
|
|
|
* @param array $data
|
|
|
|
*
|
|
|
|
* @return MessageBag
|
2017-06-10 15:09:41 +02:00
|
|
|
*/
|
2018-05-06 16:19:29 +02:00
|
|
|
public function configureJob(array $data): MessageBag;
|
2017-08-12 07:47:42 +02:00
|
|
|
|
2017-06-10 15:09:41 +02:00
|
|
|
/**
|
2018-05-06 16:19:29 +02:00
|
|
|
* Get the data necessary to show the configuration screen.
|
2017-06-10 15:09:41 +02:00
|
|
|
*
|
2018-05-06 16:19:29 +02:00
|
|
|
* @return array
|
2017-06-10 15:09:41 +02:00
|
|
|
*/
|
2018-05-06 16:19:29 +02:00
|
|
|
public function getNextData(): array;
|
2017-06-10 15:09:41 +02:00
|
|
|
|
|
|
|
/**
|
2018-05-12 15:50:01 +02:00
|
|
|
* @param ImportJob $importJob
|
2017-06-10 15:09:41 +02:00
|
|
|
*/
|
2018-05-12 15:50:01 +02:00
|
|
|
public function setImportJob(ImportJob $importJob): void;
|
2017-07-07 08:09:42 +02:00
|
|
|
}
|