You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CurrencyRateChanged.php 652B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App\Events;
  3. use App\Models\Setting\Currency;
  4. use Illuminate\Broadcasting\InteractsWithSockets;
  5. use Illuminate\Foundation\Events\Dispatchable;
  6. use Illuminate\Queue\SerializesModels;
  7. class CurrencyRateChanged
  8. {
  9. use Dispatchable;
  10. use InteractsWithSockets;
  11. use SerializesModels;
  12. public Currency $currency;
  13. public float $oldRate;
  14. public float $newRate;
  15. /**
  16. * Create a new event instance.
  17. */
  18. public function __construct(Currency $currency, float $oldRate, float $newRate)
  19. {
  20. $this->currency = $currency;
  21. $this->oldRate = $oldRate;
  22. $this->newRate = $newRate;
  23. }
  24. }