Passed
Pull Request — master (#365)
by Dmitry
21:01
created

StockConfig   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 17
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getStoreToWarehouseMapping() 0 12 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
namespace Pyz\Zed\Stock;
9
10
use Spryker\Zed\Stock\StockConfig as SprykerStockConfig;
11
12
class StockConfig extends SprykerStockConfig
13
{
14
    /**
15
     * @return array<string, list<string>>
0 ignored issues
show
Documentation Bug introduced by
The doc comment array<string, list<string>> at position 4 could not be parsed: Expected '>' at position 4, but found 'list'.
Loading history...
16
     */
17
    public function getStoreToWarehouseMapping(): array
18
    {
19
        return [
20
            'DE' => [
21
                'Warehouse1',
22
                'Warehouse2',
23
            ],
24
            'AT' => [
25
                'Warehouse2',
26
            ],
27
            'US' => [
28
                'Warehouse2',
29
            ],
30
        ];
31
    }
32
}
33