2014-10-27 23:58:48 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FireflyIII\Database;
|
|
|
|
|
|
|
|
|
2014-10-30 13:26:28 -05:00
|
|
|
use FireflyIII\Database\Ifaces\TransactionCurrencyInterface;
|
2014-10-27 23:58:48 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class TransactionType
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Database
|
|
|
|
*/
|
2014-11-22 16:30:45 -06:00
|
|
|
class TransactionCurrency implements TransactionCurrencyInterface
|
2014-10-27 23:58:48 -05:00
|
|
|
{
|
|
|
|
|
2014-11-02 07:58:12 -06:00
|
|
|
/**
|
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-02 07:58:12 -06:00
|
|
|
*/
|
2014-11-12 15:37:09 -06:00
|
|
|
public function findByCode($code)
|
2014-11-02 07:58:12 -06:00
|
|
|
{
|
2014-11-12 15:37:09 -06:00
|
|
|
return \TransactionCurrency::whereCode($code)->first();
|
2014-11-02 07:58:12 -06:00
|
|
|
}
|
2014-10-27 23:58:48 -05:00
|
|
|
}
|