Total Complexity | 6 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | final class ProcessRedirectToPaymentEvent |
||
24 | { |
||
25 | private bool $processRedirect = true; |
||
26 | |||
27 | public function __construct( |
||
28 | private readonly Registration $registration, |
||
29 | private readonly EventController $eventController, |
||
30 | private readonly ServerRequestInterface $request |
||
31 | ) { |
||
32 | } |
||
33 | |||
34 | public function getProcessRedirect(): bool |
||
35 | { |
||
36 | return $this->processRedirect; |
||
37 | } |
||
38 | |||
39 | public function setProcessRedirect(bool $processRedirect): void |
||
40 | { |
||
41 | $this->processRedirect = $processRedirect; |
||
42 | } |
||
43 | |||
44 | public function getRegistration(): Registration |
||
45 | { |
||
46 | return $this->registration; |
||
47 | } |
||
48 | |||
49 | public function getEventController(): EventController |
||
52 | } |
||
53 | |||
54 | public function getRequest(): ServerRequestInterface |
||
55 | { |
||
56 | return $this->request; |
||
59 |