BeforePayEvent.php 549 B

123456789101112131415161718192021222324252627
  1. <?php
  2. declare(strict_types=1);
  3. namespace SixShop\Payment\Event;
  4. use SixShop\Payment\Enum\PaymentBizEnum;
  5. class BeforePayEvent
  6. {
  7. public function __construct(
  8. protected array $order,
  9. protected string $paymentId,
  10. protected PaymentBizEnum $bizType,
  11. ) {
  12. }
  13. public function getOrder(): array
  14. {
  15. return $this->order;
  16. }
  17. public function getPaymentId(): string
  18. {
  19. return $this->paymentId;
  20. }
  21. public function getBizType(): PaymentBizEnum
  22. {
  23. return $this->bizType;
  24. }
  25. }