diff --git a/src/ApiResource/Matchfunding/MatchStrategyApiResource.php b/src/ApiResource/Matchfunding/MatchStrategyApiResource.php index 9e40950..d96df59 100644 --- a/src/ApiResource/Matchfunding/MatchStrategyApiResource.php +++ b/src/ApiResource/Matchfunding/MatchStrategyApiResource.php @@ -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; } diff --git a/src/Entity/Matchfunding/MatchAgainst.php b/src/Entity/Matchfunding/MatchAgainst.php index eed0825..fc1959c 100644 --- a/src/Entity/Matchfunding/MatchAgainst.php +++ b/src/Entity/Matchfunding/MatchAgainst.php @@ -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. */