src/GamificationBundle/Message/UserCoinsBalanceUpdatedMessage.php line 5

Open in your IDE?
  1. <?php
  2. namespace App\GamificationBundle\Message;
  3. class UserCoinsBalanceUpdatedMessage
  4. {
  5.     public function __construct(
  6.         private readonly int $userId,
  7.         private readonly int $coinsBalance,
  8.         private readonly int $coinsBalanceChange,
  9.         private readonly array $questDetails
  10.     ) {}
  11.     public function getUserId(): int
  12.     {
  13.         return $this->userId;
  14.     }
  15.     public function getCoinsBalance(): float
  16.     {
  17.         return $this->coinsBalance;
  18.     }
  19.     public function getCoinsBalanceChange(): float
  20.     {
  21.         return $this->coinsBalanceChange;
  22.     }
  23.     public function getQuestDetails(): array
  24.     {
  25.         return $this->questDetails;
  26.     }
  27. }