1 | <?php |
||
10 | abstract class GoldenpayController |
||
11 | { |
||
12 | /** |
||
13 | * @var PaymentEvent |
||
14 | */ |
||
15 | private $event; |
||
16 | /** |
||
17 | * @var Goldenpay |
||
18 | */ |
||
19 | protected $goldenpay; |
||
20 | /** |
||
21 | * @var Payment |
||
22 | */ |
||
23 | protected $payment; |
||
24 | |||
25 | |||
26 | /** |
||
27 | * Controller constructor. |
||
28 | * |
||
29 | * @param Request $request |
||
30 | * @param PaymentEvent $event |
||
31 | * @param Goldenpay $goldenpay |
||
32 | */ |
||
33 | public function __construct( |
||
43 | |||
44 | /** |
||
45 | * Checks payment result with "payment_key" query parameter. |
||
46 | * |
||
47 | * @param Request $request |
||
48 | */ |
||
49 | final protected function paymentResult(Request $request): void |
||
53 | } |
||
54 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.