Completed
Push — master ( 8c7d31...eb5362 )
by René
08:07 queued 07:29
created

getQuoteFieldsToCleanInExpressCheckoutWorkflow()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 9
rs 10
c 0
b 0
f 0
nc 1
nop 0
cc 1
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types = 1);
9
10
namespace Pyz\Yves\PaymentAppWidget;
11
12
use Generated\Shared\Transfer\QuoteTransfer;
13
use SprykerShop\Yves\CheckoutPage\Plugin\Router\CheckoutPageRouteProviderPlugin;
14
use SprykerShop\Yves\PaymentAppWidget\PaymentAppWidgetConfig as SprykerPaymentAppWidgetConfig;
15
16
class PaymentAppWidgetConfig extends SprykerPaymentAppWidgetConfig
17
{
18
    /**
19
     * @var list<string>
20
     */
21
    protected const CHECKOUT_STEPS_TO_SKIP_IN_EXPRESS_CHECKOUT_WORKFLOW = [
22
        'address',
23
        'shipment',
24
        'payment',
25
    ];
26
27
    /**
28
     * @return list<string>
29
     */
30
    public function getQuoteFieldsToCleanInExpressCheckoutWorkflow(): array
31
    {
32
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(Generated\S...PRE_ORDER_PAYMENT_DATA) returns the type array which is incompatible with the documented return type Pyz\Yves\PaymentAppWidget\list.
Loading history...
33
            QuoteTransfer::PAYMENT,
34
            QuoteTransfer::PAYMENTS,
35
            QuoteTransfer::SHIPMENT,
36
            QuoteTransfer::BILLING_ADDRESS,
37
            QuoteTransfer::SHIPPING_ADDRESS,
38
            QuoteTransfer::PRE_ORDER_PAYMENT_DATA,
39
        ];
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getExpressCheckoutStartPageRouteName(): string
46
    {
47
        return CheckoutPageRouteProviderPlugin::ROUTE_NAME_CHECKOUT_INDEX;
48
    }
49
}
50