Passed
Pull Request — master (#672)
by Dima
09:10 queued 03:06
created

TransferConfig::isTransferSuffixCheckStrict()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 1
c 1
b 1
f 0
dl 0
loc 3
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\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
     * We use strict name validation for core internal usage and enable this by default for all
29
     * new projects.
30
     *
31
     * @return bool
32
     */
33
    public function isTransferNameValidated(): bool
34
    {
35
        return true;
36
    }
37
38
    /**
39
     * @return bool
40
     */
41
    public function isTransferXmlValidationEnabled(): bool
42
    {
43
        return true;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getPropertyDescriptionMergeStrategy(): string
50
    {
51
        return TransferConstants::PROPERTY_DESCRIPTION_MERGE_STRATEGY_GET_FIRST;
52
    }
53
54
    /**
55
     * @return bool
56
     */
57
    public function isTransferSuffixCheckStrict(): bool
58
    {
59
        return true;
60
    }
61
}
62