Completed
Push — master ( c0a09e...6a2cfe )
by Dima
01:12 queued 42s
created

TransferConfig   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 4
eloc 6
c 1
b 1
f 0
dl 0
loc 34
rs 10

4 Methods

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