CallbackReceived.php 668 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. declare(strict_types=1);
  3. namespace Yansongda\Pay\Event;
  4. use Psr\Http\Message\ServerRequestInterface;
  5. use Yansongda\Pay\Rocket;
  6. class CallbackReceived extends Event
  7. {
  8. public string $provider;
  9. public ?array $params = null;
  10. /**
  11. * @var null|array|ServerRequestInterface
  12. */
  13. public $contents;
  14. /**
  15. * @param null|array|ServerRequestInterface $contents
  16. */
  17. public function __construct(string $provider, $contents, ?array $params = null, ?Rocket $rocket = null)
  18. {
  19. $this->provider = $provider;
  20. $this->contents = $contents;
  21. $this->params = $params;
  22. parent::__construct($rocket);
  23. }
  24. }