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

PaymentAppShipmentConfig   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getShipmentItemCollectionFieldNames() 0 4 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\Zed\PaymentAppShipment;
11
12
use Generated\Shared\Transfer\QuoteTransfer;
13
use Spryker\Zed\PaymentAppShipment\PaymentAppShipmentConfig as SprykerPaymentAppShipmentConfig;
14
15
class PaymentAppShipmentConfig extends SprykerPaymentAppShipmentConfig
16
{
17
    /**
18
     * @var array<string, string>
19
     */
20
    protected const EXPRESS_CHECKOUT_SHIPMENT_METHODS_INDEXED_BY_PAYMENT_METHOD = [
21
        'payone-paypal-express' => 'spryker_dummy_shipment-standard',
22
    ];
23
24
    /**
25
     * @return list<string>
26
     */
27
    public function getShipmentItemCollectionFieldNames(): array
28
    {
29
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(Generated\S...Transfer::BUNDLE_ITEMS) returns the type array which is incompatible with the documented return type Pyz\Zed\PaymentAppShipment\list.
Loading history...
30
            QuoteTransfer::BUNDLE_ITEMS,
31
        ];
32
    }
33
}
34