12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
-
-
- namespace MirfalahTech\Laravel\Payment\Events;
-
-
- use Illuminate\Http\Request;
- use MirfalahTech\Laravel\Payment\Contracts\PaymentGatewayDriver;
-
- abstract class PaymentGatewayEvent
- {
- protected $gateway;
- protected $gatewayDriver;
- protected $request;
-
- public function __construct(string $gateway, PaymentGatewayDriver $gatewayDriver, Request $request)
- {
- $this->gateway = $gateway;
- $this->gatewayDriver = $gatewayDriver;
- $this->request = $request;
- }
-
- /**
- * @return string
- */
- public function getGateway(): string
- {
- return $this->gateway;
- }
-
- /**
- * @return PaymentGatewayDriver
- */
- public function getDriver(): PaymentGatewayDriver
- {
- return $this->gatewayDriver;
- }
-
- /**
- * @return Request
- */
- public function getRequest(): Request
- {
- return $this->request;
- }
- }
|