PayStarted.php 502 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Yansongda\Pay\Events;
  3. class PayStarted extends Event
  4. {
  5. /**
  6. * Endpoint.
  7. *
  8. * @var string
  9. */
  10. public $endpoint;
  11. /**
  12. * Payload.
  13. *
  14. * @var array
  15. */
  16. public $payload;
  17. /**
  18. * Bootstrap.
  19. */
  20. public function __construct(string $driver, string $gateway, string $endpoint, array $payload)
  21. {
  22. $this->endpoint = $endpoint;
  23. $this->payload = $payload;
  24. parent::__construct($driver, $gateway);
  25. }
  26. }