Passed
Pull Request — master (#416)
by René
08:18 queued 03:56
created

TransferConfig::isTransferNameValidated()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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