2017-06-10 08:09:41 -05:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* ConfigurationInterface.php
|
|
|
|
* Copyright (c) 2017 thegrumpydictator@gmail.com
|
|
|
|
* This software may be modified and distributed under the terms of the Creative Commons Attribution-ShareAlike 4.0 International License.
|
|
|
|
*
|
|
|
|
* See the LICENSE file for details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace FireflyIII\Support\Import\Configuration;
|
|
|
|
|
|
|
|
use FireflyIII\Models\ImportJob;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class ConfigurationInterface
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Support\Import\Configuration
|
|
|
|
*/
|
|
|
|
interface ConfigurationInterface
|
|
|
|
{
|
|
|
|
/**
|
2017-06-12 12:12:07 -05:00
|
|
|
* Get the data necessary to show the configuration screen.
|
2017-06-10 08:09:41 -05:00
|
|
|
*
|
2017-06-12 12:12:07 -05:00
|
|
|
* @return array
|
2017-06-10 08:09:41 -05:00
|
|
|
*/
|
2017-06-12 12:12:07 -05:00
|
|
|
public function getData(): array;
|
2017-06-10 08:09:41 -05:00
|
|
|
|
2017-08-12 00:47:42 -05:00
|
|
|
/**
|
|
|
|
* Return possible warning to user.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getWarningMessage(): string;
|
|
|
|
|
2017-06-10 08:09:41 -05:00
|
|
|
/**
|
2017-06-12 12:12:07 -05:00
|
|
|
* @param ImportJob $job
|
2017-06-10 08:09:41 -05:00
|
|
|
*
|
2017-06-12 12:12:07 -05:00
|
|
|
* @return ConfigurationInterface
|
2017-06-10 08:09:41 -05:00
|
|
|
*/
|
2017-06-12 12:12:07 -05:00
|
|
|
public function setJob(ImportJob $job);
|
2017-06-10 08:09:41 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Store the result.
|
|
|
|
*
|
|
|
|
* @param array $data
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function storeConfiguration(array $data): bool;
|
|
|
|
|
2017-07-07 01:09:42 -05:00
|
|
|
}
|