Fix account controller + coverage.

This commit is contained in:
James Cole
2017-12-31 10:40:27 +01:00
parent 8bcfa729b6
commit b73884160a
7 changed files with 254 additions and 28 deletions

View File

@@ -87,6 +87,16 @@ class AccountRepository implements AccountRepositoryInterface
return true;
}
/**
* @param Account $account
*
* @return Note|null
*/
public function getNote(Account $account): ?Note
{
return $account->notes()->first();
}
/**
* Returns the date of the very last transaction in this account.
*