Total Complexity | 61 |
Total Lines | 577 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
Complex classes like ComputopFactory often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use ComputopFactory, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
85 | class ComputopFactory extends AbstractFactory |
||
86 | { |
||
87 | /** |
||
88 | * @return \SprykerEco\Yves\Computop\ComputopConfigInterface |
||
89 | */ |
||
90 | public function getComputopConfig(): ComputopConfigInterface |
||
91 | { |
||
92 | return $this->getConfig(); |
||
93 | } |
||
94 | |||
95 | /** |
||
96 | * @return \SprykerEco\Yves\Computop\Handler\ComputopPaymentHandlerInterface |
||
97 | */ |
||
98 | public function createComputopPaymentHandler(): ComputopPaymentHandlerInterface |
||
99 | { |
||
100 | return new ComputopPaymentHandler($this->getConfig()); |
||
101 | } |
||
102 | |||
103 | /** |
||
104 | * @return \Spryker\Yves\StepEngine\Dependency\Form\SubFormInterface |
||
105 | */ |
||
106 | public function createCreditCardForm(): SubFormInterface |
||
107 | { |
||
108 | return new CreditCardSubForm(); |
||
109 | } |
||
110 | |||
111 | /** |
||
112 | * @return \Spryker\Yves\StepEngine\Dependency\Form\SubFormInterface |
||
113 | */ |
||
114 | public function createPayNowForm(): SubFormInterface |
||
117 | } |
||
118 | |||
119 | /** |
||
120 | * @return \Spryker\Yves\StepEngine\Dependency\Form\SubFormInterface |
||
121 | */ |
||
122 | public function createPayPalForm(): SubFormInterface |
||
123 | { |
||
124 | return new PayPalSubForm(); |
||
125 | } |
||
126 | |||
127 | /** |
||
128 | * @return \Spryker\Yves\StepEngine\Dependency\Form\SubFormInterface |
||
129 | */ |
||
130 | public function createSofortForm(): SubFormInterface |
||
131 | { |
||
132 | return new SofortSubForm(); |
||
133 | } |
||
134 | |||
135 | /** |
||
136 | * @return \Spryker\Yves\StepEngine\Dependency\Form\SubFormInterface |
||
137 | */ |
||
138 | public function createDirectDebitForm(): SubFormInterface |
||
139 | { |
||
140 | return new DirectDebitSubForm(); |
||
141 | } |
||
142 | |||
143 | /** |
||
144 | * @return \Spryker\Yves\StepEngine\Dependency\Form\SubFormInterface |
||
145 | */ |
||
146 | public function createPaydirektForm(): SubFormInterface |
||
147 | { |
||
148 | return new PaydirektSubForm(); |
||
149 | } |
||
150 | |||
151 | /** |
||
152 | * @return \Spryker\Yves\StepEngine\Dependency\Form\SubFormInterface |
||
153 | */ |
||
154 | public function createIdealForm(): SubFormInterface |
||
155 | { |
||
156 | return new IdealSubForm(); |
||
157 | } |
||
158 | |||
159 | /** |
||
160 | * @return \Spryker\Yves\StepEngine\Dependency\Form\SubFormInterface |
||
161 | */ |
||
162 | public function createEasyCreditForm(): SubFormInterface |
||
163 | { |
||
164 | return new EasyCreditSubForm(); |
||
165 | } |
||
166 | |||
167 | /** |
||
168 | * @return \Spryker\Yves\StepEngine\Dependency\Form\StepEngineFormDataProviderInterface |
||
169 | */ |
||
170 | public function createCreditCardFormDataProvider(): StepEngineFormDataProviderInterface |
||
171 | { |
||
172 | return new CreditCardFormDataProvider($this->getQuoteClient(), $this->createOrderCreditCardMapper()); |
||
173 | } |
||
174 | |||
175 | /** |
||
176 | * @return \Spryker\Yves\StepEngine\Dependency\Form\StepEngineFormDataProviderInterface |
||
177 | */ |
||
178 | public function createPayNowFormDataProvider(): StepEngineFormDataProviderInterface |
||
179 | { |
||
180 | return new PayNowFormDataProvider($this->getQuoteClient(), $this->createOrderPayNowMapper()); |
||
181 | } |
||
182 | |||
183 | /** |
||
184 | * @return \Spryker\Yves\StepEngine\Dependency\Form\StepEngineFormDataProviderInterface |
||
185 | */ |
||
186 | public function createPayPalFormDataProvider(): StepEngineFormDataProviderInterface |
||
187 | { |
||
188 | return new PayPalFormDataProvider($this->getQuoteClient(), $this->createOrderPayPalMapper()); |
||
189 | } |
||
190 | |||
191 | /** |
||
192 | * @return \Spryker\Yves\StepEngine\Dependency\Form\StepEngineFormDataProviderInterface |
||
193 | */ |
||
194 | public function createPayPalExpressFormDataProvider(): StepEngineFormDataProviderInterface |
||
195 | { |
||
196 | return new PayPalExpressFormDataProvider($this->getQuoteClient(), $this->createPayPalExpressMapper()); |
||
197 | } |
||
198 | |||
199 | /** |
||
200 | * @return \Spryker\Yves\StepEngine\Dependency\Form\StepEngineFormDataProviderInterface |
||
201 | */ |
||
202 | public function createSofortFormDataProvider(): StepEngineFormDataProviderInterface |
||
203 | { |
||
204 | return new SofortFormDataProvider($this->getQuoteClient(), $this->createOrderSofortMapper()); |
||
205 | } |
||
206 | |||
207 | /** |
||
208 | * @return \Spryker\Yves\StepEngine\Dependency\Form\StepEngineFormDataProviderInterface |
||
209 | */ |
||
210 | public function createDirectDebitFormDataProvider(): StepEngineFormDataProviderInterface |
||
211 | { |
||
212 | return new DirectDebitFormDataProvider($this->getQuoteClient(), $this->createOrderDirectDebitMapper()); |
||
213 | } |
||
214 | |||
215 | /** |
||
216 | * @return \Spryker\Yves\StepEngine\Dependency\Form\StepEngineFormDataProviderInterface |
||
217 | */ |
||
218 | public function createPaydirektFormDataProvider(): StepEngineFormDataProviderInterface |
||
219 | { |
||
220 | return new PaydirektFormDataProvider($this->getQuoteClient(), $this->createOrderPaydirektMapper()); |
||
221 | } |
||
222 | |||
223 | /** |
||
224 | * @return \Spryker\Yves\StepEngine\Dependency\Form\StepEngineFormDataProviderInterface |
||
225 | */ |
||
226 | public function createIdealFormDataProvider(): StepEngineFormDataProviderInterface |
||
227 | { |
||
228 | return new IdealFormDataProvider($this->getQuoteClient(), $this->createOrderIdealMapper()); |
||
229 | } |
||
230 | |||
231 | /** |
||
232 | * @return \Spryker\Yves\StepEngine\Dependency\Form\StepEngineFormDataProviderInterface |
||
233 | */ |
||
234 | public function createEasyCreditFormDataProvider(): StepEngineFormDataProviderInterface |
||
235 | { |
||
236 | return new EasyCreditFormDataProvider($this->getQuoteClient(), $this->createOrderEasyCreditMapper()); |
||
237 | } |
||
238 | |||
239 | /** |
||
240 | * @return \SprykerEco\Service\ComputopApi\ComputopApiServiceInterface |
||
241 | */ |
||
242 | public function getComputopApiService(): ComputopApiServiceInterface |
||
245 | } |
||
246 | |||
247 | /** |
||
248 | * @return \Symfony\Component\HttpKernel\HttpKernelInterface |
||
249 | */ |
||
250 | public function getApplication(): HttpKernelInterface |
||
253 | } |
||
254 | |||
255 | /** |
||
256 | * @return \SprykerEco\Yves\Computop\Dependency\Client\ComputopToQuoteClientInterface |
||
257 | */ |
||
258 | public function getQuoteClient(): ComputopToQuoteClientInterface |
||
259 | { |
||
260 | return $this->getProvidedDependency(ComputopDependencyProvider::CLIENT_QUOTE); |
||
261 | } |
||
262 | |||
263 | /** |
||
264 | * @return \SprykerEco\Yves\Computop\Handler\ComputopPrePostPaymentHandlerInterface |
||
265 | */ |
||
266 | public function createCreditCardPaymentHandler(): ComputopPrePostPaymentHandlerInterface |
||
267 | { |
||
268 | return new ComputopCreditCardPaymentHandler($this->createInitCreditCardConverter(), $this->getComputopClient()); |
||
269 | } |
||
270 | |||
271 | /** |
||
272 | * @return \SprykerEco\Yves\Computop\Handler\ComputopPrePostPaymentHandlerInterface |
||
273 | */ |
||
274 | public function createPayNowPaymentHandler(): ComputopPrePostPaymentHandlerInterface |
||
277 | } |
||
278 | |||
279 | /** |
||
280 | * @return \SprykerEco\Yves\Computop\Handler\ComputopPrePostPaymentHandlerInterface |
||
281 | */ |
||
282 | public function createPayPalPaymentHandler(): ComputopPrePostPaymentHandlerInterface |
||
285 | } |
||
286 | |||
287 | /** |
||
288 | * @return \SprykerEco\Yves\Computop\Handler\ExpressCheckout\ComputopPayPalExpressInitAggregatorInterface |
||
289 | */ |
||
290 | public function createComputopPayPalExpressInitAggregator(): ComputopPayPalExpressInitAggregatorInterface |
||
291 | { |
||
292 | return new ComputopPayPalExpressInitAggregator( |
||
293 | $this->createComputopPaymentHandler(), |
||
294 | $this->createInitPayPalExpressConverter(), |
||
295 | $this->getQuoteClient(), |
||
296 | $this->createPayPalExpressToQuoteMapper(), |
||
297 | $this->getPayPalExpressInitQuoteExpanderPlugins() |
||
298 | ); |
||
299 | } |
||
300 | |||
301 | /** |
||
302 | * @return \SprykerEco\Yves\Computop\Handler\ExpressCheckout\ComputopPayPalExpressPrepareAggregatorInterface |
||
303 | */ |
||
304 | public function createComputopPayPalExpressPrepareAggregator(): ComputopPayPalExpressPrepareAggregatorInterface |
||
305 | { |
||
306 | return new ComputopPayPalExpressPrepareAggregator( |
||
307 | $this->getQuoteClient(), |
||
308 | $this->createPayPalExpressFormDataProvider(), |
||
309 | $this->getComputopApiClient() |
||
310 | ); |
||
311 | } |
||
312 | |||
313 | /** |
||
314 | * @return \SprykerEco\Yves\Computop\Handler\ExpressCheckout\ComputopPayPalExpressCompleteAggregatorInterface |
||
315 | */ |
||
316 | public function createComputopPayPalExpressCompleteAggregator(): ComputopPayPalExpressCompleteAggregatorInterface |
||
317 | { |
||
318 | return new ComputopPayPalExpressCompleteAggregator( |
||
319 | $this->getComputopApiClient(), |
||
320 | $this->getComputopClient() |
||
321 | ); |
||
322 | } |
||
323 | |||
324 | /** |
||
325 | * @return \SprykerEco\Yves\Computop\Handler\ComputopPrePostPaymentHandlerInterface |
||
326 | */ |
||
327 | public function createDirectDebitPaymentHandler(): ComputopPrePostPaymentHandlerInterface |
||
328 | { |
||
329 | return new ComputopDirectDebitPaymentHandler($this->createInitDirectDebitConverter(), $this->getComputopClient()); |
||
330 | } |
||
331 | |||
332 | /** |
||
333 | * @return \SprykerEco\Yves\Computop\Handler\ComputopPrePostPaymentHandlerInterface |
||
334 | */ |
||
335 | public function createEasyCreditPaymentHandler(): ComputopPrePostPaymentHandlerInterface |
||
341 | ); |
||
342 | } |
||
343 | |||
344 | /** |
||
345 | * @return \SprykerEco\Yves\Computop\Handler\ComputopPrePostPaymentHandlerInterface |
||
346 | */ |
||
347 | public function createPaydirektPaymentHandler(): ComputopPrePostPaymentHandlerInterface |
||
348 | { |
||
349 | return new ComputopPaydirektPaymentHandler($this->createInitPaydirektConverter(), $this->getComputopClient()); |
||
350 | } |
||
351 | |||
352 | /** |
||
353 | * @return \SprykerEco\Yves\Computop\Handler\ComputopPrePostPaymentHandlerInterface |
||
354 | */ |
||
355 | public function createSofortPaymentHandler(): ComputopPrePostPaymentHandlerInterface |
||
356 | { |
||
357 | return new ComputopSofortPaymentHandler($this->createInitSofortConverter(), $this->getComputopClient()); |
||
358 | } |
||
359 | |||
360 | /** |
||
361 | * @return \SprykerEco\Yves\Computop\Handler\ComputopPrePostPaymentHandlerInterface |
||
362 | */ |
||
363 | public function createIdealPaymentHandler(): ComputopPrePostPaymentHandlerInterface |
||
364 | { |
||
365 | return new ComputopIdealPaymentHandler($this->createInitIdealConverter(), $this->getComputopClient()); |
||
366 | } |
||
367 | |||
368 | /** |
||
369 | * @return \SprykerEco\Yves\Computop\Converter\ConverterInterface |
||
370 | */ |
||
371 | public function createInitCreditCardConverter(): ConverterInterface |
||
374 | } |
||
375 | |||
376 | /** |
||
377 | * @return \SprykerEco\Yves\Computop\Converter\ConverterInterface |
||
378 | */ |
||
379 | public function createInitPayNowConverter(): ConverterInterface |
||
380 | { |
||
381 | return new InitPayNowConverter($this->getComputopApiService(), $this->getConfig()); |
||
382 | } |
||
383 | |||
384 | /** |
||
385 | * @return \SprykerEco\Yves\Computop\Converter\ConverterInterface |
||
386 | */ |
||
387 | public function createInitPayPalConverter(): ConverterInterface |
||
388 | { |
||
389 | return new InitPayPalConverter($this->getComputopApiService(), $this->getConfig()); |
||
390 | } |
||
391 | |||
392 | /** |
||
393 | * @return \SprykerEco\Yves\Computop\Converter\ConverterInterface |
||
394 | */ |
||
395 | public function createInitPayPalExpressConverter(): ConverterInterface |
||
396 | { |
||
397 | return new InitPayPalExpressConverter($this->getComputopApiService(), $this->getConfig()); |
||
398 | } |
||
399 | |||
400 | /** |
||
401 | * @return \SprykerEco\Yves\Computop\Converter\ConverterInterface |
||
402 | */ |
||
403 | public function createInitDirectDebitConverter(): ConverterInterface |
||
404 | { |
||
405 | return new InitDirectDebitConverter($this->getComputopApiService(), $this->getConfig()); |
||
406 | } |
||
407 | |||
408 | /** |
||
409 | * @return \SprykerEco\Yves\Computop\Converter\ConverterInterface |
||
410 | */ |
||
411 | public function createInitEasyCreditConverter(): ConverterInterface |
||
412 | { |
||
413 | return new InitEasyCreditConverter($this->getComputopApiService(), $this->getConfig()); |
||
414 | } |
||
415 | |||
416 | /** |
||
417 | * @return \SprykerEco\Yves\Computop\Converter\ConverterInterface |
||
418 | */ |
||
419 | public function createInitPaydirektConverter(): ConverterInterface |
||
420 | { |
||
421 | return new InitPaydirektConverter($this->getComputopApiService(), $this->getConfig()); |
||
422 | } |
||
423 | |||
424 | /** |
||
425 | * @return \SprykerEco\Yves\Computop\Converter\ConverterInterface |
||
426 | */ |
||
427 | public function createInitSofortConverter(): ConverterInterface |
||
428 | { |
||
429 | return new InitSofortConverter($this->getComputopApiService(), $this->getConfig()); |
||
430 | } |
||
431 | |||
432 | /** |
||
433 | * @return \SprykerEco\Yves\Computop\Converter\ConverterInterface |
||
434 | */ |
||
435 | public function createInitIdealConverter(): ConverterInterface |
||
436 | { |
||
437 | return new InitIdealConverter($this->getComputopApiService(), $this->getConfig()); |
||
438 | } |
||
439 | |||
440 | /** |
||
441 | * @return \SprykerEco\Client\Computop\ComputopClientInterface |
||
442 | */ |
||
443 | public function getComputopClient(): ComputopClientInterface |
||
444 | { |
||
445 | return $this->getProvidedDependency(ComputopDependencyProvider::CLIENT_COMPUTOP); |
||
446 | } |
||
447 | |||
448 | /** |
||
449 | * @return \SprykerEco\Yves\Computop\Dependency\ComputopToStoreInterface |
||
450 | */ |
||
451 | public function getStore(): ComputopToStoreInterface |
||
452 | { |
||
453 | return $this->getProvidedDependency(ComputopDependencyProvider::STORE); |
||
454 | } |
||
455 | |||
456 | /** |
||
457 | * @return \SprykerEco\Yves\Computop\Dependency\Client\ComputopToCalculationClientInterface |
||
458 | */ |
||
459 | public function getCalculationClient(): ComputopToCalculationClientInterface |
||
460 | { |
||
461 | return $this->getProvidedDependency(ComputopDependencyProvider::CLIENT_CALCULATION); |
||
462 | } |
||
463 | |||
464 | /** |
||
465 | * @return \SprykerEco\Yves\Computop\Dependency\Client\ComputopToComputopApiClientInterface |
||
466 | */ |
||
467 | public function getComputopApiClient(): ComputopToComputopApiClientInterface |
||
468 | { |
||
469 | return $this->getProvidedDependency(ComputopDependencyProvider::CLIENT_COMPUTOP_API); |
||
470 | } |
||
471 | |||
472 | /** |
||
473 | * @return \SprykerEco\Yves\Computop\Mapper\Init\MapperInterface |
||
474 | */ |
||
475 | public function createOrderCreditCardMapper(): MapperInterface |
||
476 | { |
||
477 | return new CreditCardMapper( |
||
478 | $this->getComputopApiService(), |
||
479 | $this->getRouter(), |
||
480 | $this->getStore(), |
||
481 | $this->getConfig(), |
||
482 | $this->getRequestStack()->getCurrentRequest(), |
||
|
|||
483 | $this->getUtilEncodingService(), |
||
484 | $this->getCountryClient() |
||
485 | ); |
||
486 | } |
||
487 | |||
488 | /** |
||
489 | * @return \SprykerEco\Yves\Computop\Mapper\Init\MapperInterface |
||
490 | */ |
||
491 | public function createOrderPayNowMapper(): MapperInterface |
||
492 | { |
||
493 | return new PayNowMapper( |
||
494 | $this->getComputopApiService(), |
||
495 | $this->getRouter(), |
||
496 | $this->getStore(), |
||
497 | $this->getConfig(), |
||
498 | $this->getRequestStack()->getCurrentRequest(), |
||
499 | $this->getUtilEncodingService(), |
||
500 | $this->getCountryClient() |
||
501 | ); |
||
502 | } |
||
503 | |||
504 | /** |
||
505 | * @return \SprykerEco\Yves\Computop\Mapper\Init\MapperInterface |
||
506 | */ |
||
507 | public function createOrderPayPalMapper(): MapperInterface |
||
508 | { |
||
509 | return new PayPalMapper( |
||
510 | $this->getComputopApiService(), |
||
511 | $this->getRouter(), |
||
512 | $this->getStore(), |
||
513 | $this->getConfig(), |
||
514 | $this->getRequestStack()->getCurrentRequest(), |
||
515 | $this->getUtilEncodingService(), |
||
516 | $this->getCountryClient() |
||
517 | ); |
||
518 | } |
||
519 | |||
520 | /** |
||
521 | * @return \SprykerEco\Yves\Computop\Mapper\Init\MapperInterface |
||
522 | */ |
||
523 | public function createPayPalExpressMapper(): MapperInterface |
||
524 | { |
||
525 | return new PayPalExpressMapper( |
||
526 | $this->getComputopApiService(), |
||
527 | $this->getRouter(), |
||
528 | $this->getStore(), |
||
529 | $this->getConfig(), |
||
530 | $this->getRequestStack()->getCurrentRequest(), |
||
531 | $this->getUtilEncodingService(), |
||
532 | $this->getCountryClient() |
||
533 | ); |
||
534 | } |
||
535 | |||
536 | /** |
||
537 | * @return \SprykerEco\Yves\Computop\Mapper\Init\MapperInterface |
||
538 | */ |
||
539 | public function createOrderDirectDebitMapper(): MapperInterface |
||
540 | { |
||
541 | return new DirectDebitMapper( |
||
542 | $this->getComputopApiService(), |
||
543 | $this->getRouter(), |
||
544 | $this->getStore(), |
||
545 | $this->getConfig(), |
||
546 | $this->getRequestStack()->getCurrentRequest(), |
||
547 | $this->getUtilEncodingService(), |
||
548 | $this->getCountryClient() |
||
549 | ); |
||
550 | } |
||
551 | |||
552 | /** |
||
553 | * @return \SprykerEco\Yves\Computop\Mapper\Init\MapperInterface |
||
554 | */ |
||
555 | public function createOrderSofortMapper(): MapperInterface |
||
556 | { |
||
557 | return new SofortMapper( |
||
558 | $this->getComputopApiService(), |
||
559 | $this->getRouter(), |
||
560 | $this->getStore(), |
||
561 | $this->getConfig(), |
||
562 | $this->getRequestStack()->getCurrentRequest(), |
||
563 | $this->getUtilEncodingService(), |
||
564 | $this->getCountryClient() |
||
565 | ); |
||
566 | } |
||
567 | |||
568 | /** |
||
569 | * @return \SprykerEco\Yves\Computop\Mapper\Init\MapperInterface |
||
570 | */ |
||
571 | public function createOrderPaydirektMapper(): MapperInterface |
||
572 | { |
||
573 | return new PaydirektMapper( |
||
574 | $this->getComputopApiService(), |
||
575 | $this->getRouter(), |
||
576 | $this->getStore(), |
||
577 | $this->getConfig(), |
||
578 | $this->getRequestStack()->getCurrentRequest(), |
||
579 | $this->getUtilEncodingService(), |
||
580 | $this->getCountryClient() |
||
581 | ); |
||
582 | } |
||
583 | |||
584 | /** |
||
585 | * @return \SprykerEco\Yves\Computop\Mapper\Init\MapperInterface |
||
586 | */ |
||
587 | public function createOrderIdealMapper(): MapperInterface |
||
588 | { |
||
589 | return new IdealMapper( |
||
590 | $this->getComputopApiService(), |
||
591 | $this->getRouter(), |
||
592 | $this->getStore(), |
||
593 | $this->getConfig(), |
||
594 | $this->getRequestStack()->getCurrentRequest(), |
||
595 | $this->getUtilEncodingService(), |
||
596 | $this->getCountryClient() |
||
597 | ); |
||
598 | } |
||
599 | |||
600 | /** |
||
601 | * @return \SprykerEco\Yves\Computop\Mapper\Init\MapperInterface |
||
602 | */ |
||
603 | public function createOrderEasyCreditMapper(): MapperInterface |
||
613 | ); |
||
614 | } |
||
615 | |||
616 | /** |
||
617 | * @return \Spryker\Yves\Router\Router\RouterInterface |
||
618 | */ |
||
619 | public function getRouter(): RouterInterface |
||
620 | { |
||
621 | return $this->getProvidedDependency(ComputopDependencyProvider::SERVICE_ROUTER); |
||
622 | } |
||
623 | |||
624 | /** |
||
625 | * @return \Symfony\Component\HttpFoundation\RequestStack |
||
626 | */ |
||
627 | public function getRequestStack(): RequestStack |
||
630 | } |
||
631 | |||
632 | /** |
||
633 | * @return \SprykerEco\Yves\Computop\Dependency\Service\ComputopToUtilEncodingServiceInterface |
||
634 | */ |
||
635 | public function getUtilEncodingService(): ComputopToUtilEncodingServiceInterface |
||
636 | { |
||
637 | return $this->getProvidedDependency(ComputopDependencyProvider::SERVICE_UTIL_ENCODING); |
||
638 | } |
||
639 | |||
640 | /** |
||
641 | * @return \SprykerEco\Yves\Computop\Dependency\Client\ComputopToCountryClientInterface |
||
642 | */ |
||
643 | public function getCountryClient(): ComputopToCountryClientInterface |
||
646 | } |
||
647 | |||
648 | /** |
||
649 | * @return \SprykerEco\Yves\Computop\Mapper\Init\PrePlace\PayPalExpressToQuoteMapperInterface |
||
650 | */ |
||
651 | public function createPayPalExpressToQuoteMapper(): PayPalExpressToQuoteMapperInterface |
||
652 | { |
||
653 | return new PayPalExpressToQuoteMapper(); |
||
654 | } |
||
655 | |||
656 | /** |
||
657 | * @return array<\SprykerEco\Yves\ComputopExtension\Dependency\Plugin\PayPalExpressInitQuoteExpanderPluginInterface> |
||
658 | */ |
||
659 | public function getPayPalExpressInitQuoteExpanderPlugins(): array |
||
660 | { |
||
661 | return $this->getProvidedDependency(ComputopDependencyProvider::PLUGINS_PAYPAL_EXPRESS_INIT_QUOTE_EXPANDER); |
||
662 | } |
||
663 | } |
||
664 |