Various code cleanup [skip ci]

This commit is contained in:
James Cole
2018-03-10 22:38:20 +01:00
parent a55d18709c
commit aad0864018
59 changed files with 118 additions and 120 deletions

View File

@@ -73,21 +73,13 @@ interface BudgetRepositoryInterface
* Find a budget.
*
* @param int $budgetId
*
* @deprecated
*
* @return Budget
*/
public function find(int $budgetId): Budget;
/**
* Find a budget or return NULL
*
* @param int $budgetId
*
* @return Budget|null
*/
public function findNull(int $budgetId): ?Budget;
/**
* Find a budget.
*
@@ -97,6 +89,15 @@ interface BudgetRepositoryInterface
*/
public function findByName(string $name): ?Budget;
/**
* Find a budget or return NULL
*
* @param int $budgetId
*
* @return Budget|null
*/
public function findNull(int $budgetId): ?Budget;
/**
* This method returns the oldest journal or transaction date known to this budget.
* Will cache result.