Clean up code for import routine.

This commit is contained in:
James Cole
2018-03-24 10:35:42 +01:00
parent 310ed9f504
commit 55602d632d
23 changed files with 363 additions and 181 deletions

View File

@@ -87,13 +87,31 @@ interface CurrencyRepositoryInterface
/**
* Find by currency name.
*
* @deprecated
* @param string $currencyName
*
* @return TransactionCurrency
*/
public function findByName(string $currencyName): TransactionCurrency;
/**
* Find by currency name.
*
* @param string $currencyName
*
* @return TransactionCurrency
*/
public function findByNameNull(string $currencyName): ?TransactionCurrency;
/**
* Find by currency symbol.
* @deprecated
* @param string $currencySymbol
*
* @return TransactionCurrency
*/
public function findBySymbol(string $currencySymbol): TransactionCurrency;
/**
* Find by currency symbol.
*
@@ -101,7 +119,7 @@ interface CurrencyRepositoryInterface
*
* @return TransactionCurrency
*/
public function findBySymbol(string $currencySymbol): TransactionCurrency;
public function findBySymbolNull(string $currencySymbol): ?TransactionCurrency;
/**
* Find by ID, return NULL if not found.