Small extension on import account, for testing mostly.

This commit is contained in:
James Cole
2018-01-06 09:33:28 +01:00
parent af1bdc0c2c
commit 76d8017be5
4 changed files with 217 additions and 24 deletions

View File

@@ -87,6 +87,18 @@ class AccountRepository implements AccountRepositoryInterface
return true;
}
/**
* Return account type by string.
*
* @param string $type
*
* @return AccountType|null
*/
public function getAccountType(string $type): ?AccountType
{
return AccountType::whereType($type)->first();
}
/**
* @param Account $account
*