firefly-iii/app/lib/FireflyIII/Database/TransactionCurrency.php

25 lines
445 B
PHP
Raw Normal View History

<?php
namespace FireflyIII\Database;
2014-10-30 13:26:28 -05:00
use FireflyIII\Database\Ifaces\TransactionCurrencyInterface;
/**
* Class TransactionType
*
* @package FireflyIII\Database
*/
class TransactionCurrency implements TransactionCurrencyInterface
{
/**
2014-11-12 15:37:09 -06:00
* @param string $code
2014-11-12 15:21:48 -06:00
*
2014-11-12 15:37:09 -06:00
* @return \TransactionCurrency|null
*/
2014-11-12 15:37:09 -06:00
public function findByCode($code)
{
2014-11-12 15:37:09 -06:00
return \TransactionCurrency::whereCode($code)->first();
}
}