Completed
Push — master ( ac829e...e5cdef )
by Anton
43s queued 26s
created

TransferConfig   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 5
c 1
b 0
f 0
dl 0
loc 26
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPropertyDescriptionMergeStrategy() 0 3 1
A isTransferXmlValidationEnabled() 0 3 1
A getEntitiesSourceDirectories() 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
namespace Pyz\Zed\Transfer;
9
10
use Spryker\Shared\Transfer\TransferConstants;
11
use Spryker\Zed\Transfer\TransferConfig as SprykerTransferConfig;
12
13
class TransferConfig extends SprykerTransferConfig
14
{
15
    /**
16
     * @return array<string>
17
     */
18
    public function getEntitiesSourceDirectories(): array
19
    {
20
        return [
21
            APPLICATION_SOURCE_DIR . '/Orm/Propel/*/Schema/',
22
        ];
23
    }
24
25
    /**
26
     * @return bool
27
     */
28
    public function isTransferXmlValidationEnabled(): bool
29
    {
30
        return true;
31
    }
32
33
    /**
34
     * @return string
35
     */
36
    public function getPropertyDescriptionMergeStrategy(): string
37
    {
38
        return TransferConstants::PROPERTY_DESCRIPTION_MERGE_STRATEGY_GET_FIRST;
39
    }
40
}
41