mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-09 15:43:19 -06:00
28 lines
536 B
PHP
28 lines
536 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 . ')';
|
|
}
|
|
|
|
return $list;
|
|
}
|
|
} |