mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-08 23:24:07 -06:00
32 lines
623 B
PHP
32 lines
623 B
PHP
<?php
|
|
|
|
namespace FireflyIII\Helpers\Csv\Mapper;
|
|
|
|
use FireflyIII\Models\TransactionCurrency as TC;
|
|
|
|
/**
|
|
* Class TransactionCurrency
|
|
*
|
|
* @package FireflyIII\Helpers\Csv\Mapper
|
|
*/
|
|
class TransactionCurrency implements MapperInterface
|
|
{
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function getMap()
|
|
{
|
|
$currencies = TC::get();
|
|
$list = [];
|
|
foreach ($currencies as $currency) {
|
|
$list[$currency->id] = $currency->name . ' (' . $currency->code . ')';
|
|
}
|
|
|
|
asort($list);
|
|
|
|
array_unshift($list, trans('firefly.csv_do_not_map'));
|
|
|
|
return $list;
|
|
}
|
|
} |