mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-27 17:31:09 -06:00
84 lines
1.4 KiB
PHP
84 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* BasicConverter.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;
|
|
|
|
|
|
/**
|
|
* Class BasicConverter
|
|
*
|
|
* @package FireflyIII\Import\Converter
|
|
*/
|
|
class BasicConverter
|
|
{
|
|
/** @var int */
|
|
public $certainty = 50;
|
|
/** @var array */
|
|
public $config;
|
|
/** @var bool */
|
|
public $doMap;
|
|
/** @var array */
|
|
public $mapping = [];
|
|
/** @var User */
|
|
public $user;
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getCertainty():int
|
|
{
|
|
return $this->certainty;
|
|
}
|
|
|
|
/**
|
|
* @param int $certainty
|
|
*/
|
|
protected function setCertainty(int $certainty)
|
|
{
|
|
$this->certainty = $certainty;
|
|
}
|
|
|
|
/**
|
|
* @param array $config
|
|
*/
|
|
public function setConfig(array $config)
|
|
{
|
|
$this->config = $config;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $doMap
|
|
*/
|
|
public function setDoMap(bool $doMap)
|
|
{
|
|
$this->doMap = $doMap;
|
|
}
|
|
|
|
/**
|
|
* @param array $mapping
|
|
*
|
|
*/
|
|
public function setMapping(array $mapping)
|
|
{
|
|
$this->mapping = $mapping;
|
|
}
|
|
|
|
/**
|
|
* @param User $user
|
|
*/
|
|
public function setUser(User $user)
|
|
{
|
|
$this->user = $user;
|
|
}
|
|
}
|