Sort and clean up some code.

This commit is contained in:
James Cole
2021-08-20 20:49:42 +02:00
parent f80178b1b2
commit c9c043712a
6 changed files with 40 additions and 36 deletions

View File

@@ -56,6 +56,14 @@ interface BudgetRepositoryInterface
*/
public function destroyAutoBudget(Budget $budget): void;
/**
*
* @param int|null $budgetId
*
* @return Budget|null
*/
public function find(int $budgetId = null): ?Budget;
/**
* @param int|null $budgetId
* @param string|null $budgetName
@@ -73,14 +81,6 @@ interface BudgetRepositoryInterface
*/
public function findByName(?string $name): ?Budget;
/**
*
* @param int|null $budgetId
*
* @return Budget|null
*/
public function find(int $budgetId = null): ?Budget;
/**
* This method returns the oldest journal or transaction date known to this budget.
* Will cache result.