MethodCalled.php 559 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Yansongda\Pay\Events;
  3. class MethodCalled 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. * @author yansongda <me@yansongda.cn>
  21. */
  22. public function __construct(string $driver, string $gateway, string $endpoint, array $payload = [])
  23. {
  24. $this->endpoint = $endpoint;
  25. $this->payload = $payload;
  26. parent::__construct($driver, $gateway);
  27. }
  28. }