RequestReceived.php 414 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Yansongda\Pay\Events;
  3. class RequestReceived extends Event
  4. {
  5. /**
  6. * Received data.
  7. *
  8. * @var array
  9. */
  10. public $data;
  11. /**
  12. * Bootstrap.
  13. *
  14. * @author yansongda <me@yansongda.cn>
  15. */
  16. public function __construct(string $driver, string $gateway, array $data)
  17. {
  18. $this->data = $data;
  19. parent::__construct($driver, $gateway);
  20. }
  21. }