mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-27 11:20:39 -06:00
25 lines
445 B
PHP
25 lines
445 B
PHP
<?php
|
|
|
|
namespace FireflyIII\Database;
|
|
|
|
|
|
use FireflyIII\Database\Ifaces\TransactionCurrencyInterface;
|
|
|
|
/**
|
|
* Class TransactionType
|
|
*
|
|
* @package FireflyIII\Database
|
|
*/
|
|
class TransactionCurrency implements TransactionCurrencyInterface
|
|
{
|
|
|
|
/**
|
|
* @param string $code
|
|
*
|
|
* @return \TransactionCurrency|null
|
|
*/
|
|
public function findByCode($code)
|
|
{
|
|
return \TransactionCurrency::whereCode($code)->first();
|
|
}
|
|
} |