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

StockConfig::getStoreToWarehouseMapping()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 12
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
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