Remove unnecessary setters.

This commit is contained in:
James Cole
2025-08-03 08:02:13 +02:00
parent 716d72d8af
commit 061c01da53
16 changed files with 9 additions and 40 deletions

View File

@@ -177,7 +177,6 @@ class StandardMessageGenerator implements MessageGeneratorInterface
$accounts = $this->collectAccounts($model);
$enrichment = new AccountEnrichment();
$enrichment->setUser($model->user);
$enrichment->setPrimaryCurrency(Amount::getPrimaryCurrencyByUserGroup($model->userGroup));
$accounts = $enrichment->enrich($accounts);
foreach ($accounts as $account) {
$transformer = new AccountTransformer();