Skip to content

Commit

Permalink
make account balance and limits public properties to fix creating sna…
Browse files Browse the repository at this point in the history
…pshots
  • Loading branch information
suhailhijry committed Aug 19, 2024
1 parent a3f2fa7 commit ff652aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Domain/Account/AccountAggregateRoot.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit ff652aa

Please sign in to comment.