@@ -27,6 +27,19 @@ final class NetsEasyPaymentHandler extends JobTypeBase implements ContainerFacto
27
27
28
28
/**
29
29
* {@inheritdoc}
30
+ *
31
+ * @param array<mixed> $configuration
32
+ * A configuration array containing information about the plugin instance.
33
+ * @param string $plugin_id
34
+ * The plugin ID for the plugin instance.
35
+ * @param mixed $plugin_definition
36
+ * The plugin implementation definition.
37
+ * @param \Drupal\Core\Logger\LoggerChannel $logger
38
+ * The logger.
39
+ * @param \GuzzleHttp\Client $httpClient
40
+ * The client.
41
+ * @param \Drupal\os2forms_payment\Helper\PaymentHelper $paymentHelper
42
+ * The payment helper.
30
43
*/
31
44
public function __construct (
32
45
array $ configuration ,
@@ -41,6 +54,15 @@ public function __construct(
41
54
42
55
/**
43
56
* {@inheritdoc}
57
+ *
58
+ * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
59
+ * The container to pull out services used in the plugin.
60
+ * @param array<mixed> $configuration
61
+ * A configuration array containing information about the plugin instance.
62
+ * @param string $plugin_id
63
+ * The plugin ID for the plugin instance.
64
+ * @param mixed $plugin_definition
65
+ * The plugin implementation definition.
44
66
*/
45
67
public static function create (ContainerInterface $ container , array $ configuration , $ plugin_id , $ plugin_definition ) {
46
68
return new NetsEasyPaymentHandler (
@@ -67,7 +89,7 @@ public function process(Job $job): JobResult {
67
89
$ payload = $ job ->getPayload ();
68
90
$ stage = $ payload ['processing_stage ' ] ?? 0 ;
69
91
70
- /** @var \Drupal\webform\Entity\ WebformSubmissionInterface $webformSubmission */
92
+ /** @var \Drupal\webform\WebformSubmissionInterface $webformSubmission */
71
93
$ webformSubmission = WebformSubmission::load ($ payload ['submissionId ' ]);
72
94
73
95
$ logger_context = [
@@ -107,9 +129,9 @@ public function process(Job $job): JobResult {
107
129
*
108
130
* @param \Drupal\advancedqueue\Job $job
109
131
* The job object containing payload information.
110
- * @param \Drupal\webform\Entity\ WebformSubmissionInterface $webformSubmission
132
+ * @param \Drupal\webform\WebformSubmissionInterface $webformSubmission
111
133
* The webform submission related to the payment.
112
- * @param array $logger_context
134
+ * @param array<mixed> $logger_context
113
135
* Context for logging.
114
136
*
115
137
* @throws \Drupal\os2forms_payment\Exception\RuntimeException
@@ -161,9 +183,9 @@ private function getPaymentAndSetRelevantValues(Job $job, WebformSubmissionInter
161
183
*
162
184
* @param \Drupal\advancedqueue\Job $job
163
185
* The job object containing payload information.
164
- * @param \Drupal\webform\Entity\ WebformSubmissionInterface $webformSubmission
186
+ * @param \Drupal\webform\WebformSubmissionInterface $webformSubmission
165
187
* The webform submission related to the payment.
166
- * @param array $logger_context
188
+ * @param array<mixed> $logger_context
167
189
* Context for logging.
168
190
*
169
191
* @throws \Drupal\os2forms_payment\Exception\RuntimeException
@@ -199,9 +221,9 @@ private function updatePaymentReference(Job $job, WebformSubmissionInterface $we
199
221
*
200
222
* @param \Drupal\advancedqueue\Job $job
201
223
* The job object containing payload information.
202
- * @param \Drupal\webform\Entity\ WebformSubmissionInterface $webformSubmission
224
+ * @param \Drupal\webform\WebformSubmissionInterface $webformSubmission
203
225
* The webform submission related to the payment.
204
- * @param array $logger_context
226
+ * @param array<mixed> $logger_context
205
227
* Context for logging.
206
228
*
207
229
* @throws \Exception
0 commit comments