2016-07-15 22:26:08 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* ConverterInterface.php
|
|
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
|
|
*
|
2016-10-05 06:52:15 +02:00
|
|
|
* 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.
|
2016-07-15 22:26:08 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
declare(strict_types = 1);
|
|
|
|
|
|
|
|
namespace FireflyIII\Import\Converter;
|
2016-07-16 07:58:25 +02:00
|
|
|
|
2016-07-15 22:26:08 +02:00
|
|
|
use FireflyIII\User;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface ConverterInterface
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Import\Converter
|
|
|
|
*/
|
|
|
|
interface ConverterInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param $value
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public function convert($value);
|
|
|
|
|
2016-07-16 07:58:25 +02:00
|
|
|
/**
|
2016-08-26 08:21:31 +02:00
|
|
|
* @return int
|
2016-07-16 07:58:25 +02:00
|
|
|
*/
|
2016-08-26 08:21:31 +02:00
|
|
|
public function getCertainty(): int;
|
2016-07-16 07:58:25 +02:00
|
|
|
|
2016-07-24 18:47:55 +02:00
|
|
|
/**
|
2016-08-26 08:21:31 +02:00
|
|
|
* @param array $config
|
2016-07-24 18:47:55 +02:00
|
|
|
*/
|
2016-08-26 08:21:31 +02:00
|
|
|
public function setConfig(array $config);
|
2016-07-24 18:47:55 +02:00
|
|
|
|
2016-07-15 22:26:08 +02:00
|
|
|
/**
|
|
|
|
* @param bool $doMap
|
|
|
|
*/
|
|
|
|
public function setDoMap(bool $doMap);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array $mapping
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public function setMapping(array $mapping);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param User $user
|
|
|
|
*/
|
|
|
|
public function setUser(User $user);
|
2016-08-12 15:10:03 +02:00
|
|
|
}
|