getStoreSynchronizationPoolName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
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
declare(strict_types = 1);
9
10
namespace Pyz\Zed\StoreStorage;
11
12
use Pyz\Zed\Synchronization\SynchronizationConfig;
13
use Spryker\Shared\CompanyUserStorage\CompanyUserStorageConfig;
14
use Spryker\Shared\CustomerAccessStorage\CustomerAccessStorageConstants;
15
use Spryker\Shared\GlossaryStorage\GlossaryStorageConfig;
16
use Spryker\Shared\NavigationStorage\NavigationStorageConstants;
17
use Spryker\Shared\ProductMeasurementUnitStorage\ProductMeasurementUnitStorageConfig;
18
use Spryker\Shared\ProductPackagingUnitStorage\ProductPackagingUnitStorageConfig;
19
use Spryker\Shared\ProductReviewSearch\ProductReviewSearchConfig;
20
use Spryker\Shared\SalesReturnSearch\SalesReturnSearchConfig;
21
use Spryker\Zed\StoreStorage\StoreStorageConfig as SprykerStoreStorageConfig;
22
23
class StoreStorageConfig extends SprykerStoreStorageConfig
24
{
25
    public function getStoreSynchronizationPoolName(): ?string
26
    {
27
        return SynchronizationConfig::DEFAULT_SYNCHRONIZATION_POOL_NAME;
28
    }
29
30
    /**
31
     * @return array<string>
32
     */
33
    public function getStoreCreationResourcesToReSync(): array
34
    {
35
        return [
36
            GlossaryStorageConfig::TRANSLATION_RESOURCE_NAME,
37
            ProductReviewSearchConfig::PRODUCT_REVIEW_RESOURCE_NAME,
38
            NavigationStorageConstants::RESOURCE_NAME,
39
            ProductMeasurementUnitStorageConfig::PRODUCT_MEASUREMENT_UNIT_RESOURCE_NAME,
40
            ProductPackagingUnitStorageConfig::PRODUCT_PACKAGING_UNIT_RESOURCE_NAME,
41
            CustomerAccessStorageConstants::CUSTOMER_ACCESS_RESOURCE_NAME,
42
            CompanyUserStorageConfig::COMPANY_USER_RESOURCE_NAME,
43
            SalesReturnSearchConfig::RETURN_REASON_RESOURCE_NAME,
44
        ];
45
    }
46
}
47