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