From ff652aa89b164648fbbb59313ccc1633a950453f Mon Sep 17 00:00:00 2001 From: achilles Date: Mon, 19 Aug 2024 20:24:32 +0300 Subject: [PATCH] make account balance and limits public properties to fix creating snapshots --- app/Domain/Account/AccountAggregateRoot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Domain/Account/AccountAggregateRoot.php b/app/Domain/Account/AccountAggregateRoot.php index 110bd3c..1a582f5 100644 --- a/app/Domain/Account/AccountAggregateRoot.php +++ b/app/Domain/Account/AccountAggregateRoot.php @@ -13,11 +13,11 @@ class AccountAggregateRoot extends AggregateRoot { - protected int $balance = 0; + public int $balance = 0; protected int $accountLimit = -5000; - protected int $accountLimitHitInARow = 0; + public int $accountLimitHitInARow = 0; public function createAccount(string $name, string $userId) {