Move method to correct repository.

This commit is contained in:
James Cole
2019-08-30 07:49:08 +02:00
parent 4cdbea2737
commit e525960320
5 changed files with 34 additions and 22 deletions

View File

@@ -110,20 +110,6 @@ class BudgetRepository implements BudgetRepositoryInterface
return true;
}
/**
* Destroy a budget limit.
*
* @param BudgetLimit $budgetLimit
*/
public function destroyBudgetLimit(BudgetLimit $budgetLimit): void
{
try {
$budgetLimit->delete();
} catch (Exception $e) {
Log::info(sprintf('Could not delete budget limit: %s', $e->getMessage()));
}
}
/**
* @param int|null $budgetId
* @param string|null $budgetName