Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Expand helper for #37
James Cole335e2083af2d
diff --git a/app/lib/FireflyIII/Database/TransactionCurrency/TransactionCurrency.php b/app/lib/FireflyIII/Database/TransactionCurrency/TransactionCurrency.phpindex e08c51290f..b5244a2c5e 100644--- a/app/lib/FireflyIII/Database/TransactionCurrency/TransactionCurrency.php+++ b/app/lib/FireflyIII/Database/TransactionCurrency/TransactionCurrency.php@@ -1,13 +1,16 @@<?phpnamespace FireflyIII\Database\TransactionCurrency;+use FireflyIII\Database\CommonDatabaseCalls;+use Illuminate\Support\Collection;+use FireflyIII\Exception\NotImplementedException;/*** Class TransactionType** @package FireflyIII\Database*/-class TransactionCurrency implements TransactionCurrencyInterface+class TransactionCurrency implements TransactionCurrencyInterface, CommonDatabaseCalls{/**@@ -19,4 +22,51 @@ class TransactionCurrency implements TransactionCurrencyInterface{return \TransactionCurrency::whereCode($code)->first();}++ /**+ * Returns an object with id $id.+ *+ * @param int $objectId+ *+ * @return \Eloquent+ */+ public function find($objectId)+ {+ // TODO: Implement find() method.+ throw new NotImplementedException;+ }++ /**+ * Finds an account type using one of the "$what"'s: expense, asset, revenue, opening, etc.+ *+ * @param $what+ *+ * @return \AccountType|null+ */+ public function findByWhat($what)+ {+ // TODO: Implement findByWhat() method.+ throw new NotImplementedException;+ }++ /**+ * Returns all objects.+ *+ * @return Collection+ */+ public function get()+ {+ return \TransactionCurrency::orderBy('code','ASC')->get();+ }++ /**+ * @param array $objectIds+ *+ * @return Collection+ */+ public function getByIds(array $objectIds)+ {+ // TODO: Implement getByIds() method.+ throw new NotImplementedException;+ }}\ No newline at end of file