You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PaymentGatewayEvent.php 906B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace MirfalahTech\Laravel\Payment\Events;
  3. use Illuminate\Http\Request;
  4. use MirfalahTech\Laravel\Payment\Contracts\PaymentGatewayDriver;
  5. abstract class PaymentGatewayEvent
  6. {
  7. protected $gateway;
  8. protected $gatewayDriver;
  9. protected $request;
  10. public function __construct(string $gateway, PaymentGatewayDriver $gatewayDriver, Request $request)
  11. {
  12. $this->gateway = $gateway;
  13. $this->gatewayDriver = $gatewayDriver;
  14. $this->request = $request;
  15. }
  16. /**
  17. * @return string
  18. */
  19. public function getGateway(): string
  20. {
  21. return $this->gateway;
  22. }
  23. /**
  24. * @return PaymentGatewayDriver
  25. */
  26. public function getDriver(): PaymentGatewayDriver
  27. {
  28. return $this->gatewayDriver;
  29. }
  30. /**
  31. * @return Request
  32. */
  33. public function getRequest(): Request
  34. {
  35. return $this->request;
  36. }
  37. }