mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-27 17:31:09 -06:00
54 lines
941 B
PHP
54 lines
941 B
PHP
<?php
|
|
/**
|
|
* ConverterInterface.php
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
*
|
|
* This software may be modified and distributed under the terms
|
|
* of the MIT license. See the LICENSE file for details.
|
|
*/
|
|
|
|
declare(strict_types = 1);
|
|
|
|
namespace FireflyIII\Import\Converter;
|
|
|
|
use FireflyIII\User;
|
|
|
|
/**
|
|
* Interface ConverterInterface
|
|
*
|
|
* @package FireflyIII\Import\Converter
|
|
*/
|
|
interface ConverterInterface
|
|
{
|
|
/**
|
|
* @param $value
|
|
*
|
|
*/
|
|
public function convert($value);
|
|
|
|
/**
|
|
* @param array $config
|
|
*/
|
|
public function setConfig(array $config);
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getCertainty(): int;
|
|
|
|
/**
|
|
* @param bool $doMap
|
|
*/
|
|
public function setDoMap(bool $doMap);
|
|
|
|
/**
|
|
* @param array $mapping
|
|
*
|
|
*/
|
|
public function setMapping(array $mapping);
|
|
|
|
/**
|
|
* @param User $user
|
|
*/
|
|
public function setUser(User $user);
|
|
} |