Add DEFAULT const to MatchAgainst enum

This commit is contained in:
2025-04-28 14:14:47 +02:00
parent 15b5040f25
commit 87698c962c
2 changed files with 3 additions and 1 deletions
@@ -65,5 +65,5 @@ class MatchStrategyApiResource
* - `budget_min` the minimum in the Project's budget
* - `budget_opt` the optimum in the Project's budget.
*/
public MatchAgainst $match = MatchAgainst::Charge;
public MatchAgainst $match = MatchAgainst::DEFAULT;
}
+2
View File
@@ -7,6 +7,8 @@ namespace App\Entity\Matchfunding;
*/
enum MatchAgainst: string
{
public const DEFAULT = self::Charge;
/**
* The money to be matched will be extracted from a Charge item.
*/