Passed
Pull Request — master (#783)
by Eugenia
39:02
created

TransferConfig::isTransferXmlValidationEnabled()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
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
declare(strict_types = 1);
9
10
namespace Pyz\Zed\Transfer;
11
12
use Spryker\Zed\Transfer\TransferConfig as SprykerTransferConfig;
13
14
class TransferConfig extends SprykerTransferConfig
15
{
16
    /**
17
     * @return array<string>
18
     */
19
    public function getEntitiesSourceDirectories(): array
20
    {
21
        return [
22
            APPLICATION_SOURCE_DIR . '/Orm/Propel/*/Schema/',
23
        ];
24
    }
25
26
    /**
27
     * We use strict name validation for core internal usage and enable this by default for all
28
     * new projects.
29
     *
30
     * @return bool
31
     */
32
    public function isTransferNameValidated(): bool
33
    {
34
        return true;
35
    }
36
37
    /**
38
     * @return bool
39
     */
40
    public function isTransferXmlValidationEnabled(): bool
41
    {
42
        return true;
43
    }
44
45
    /**
46
     * @return bool
47
     */
48
    public function isTransferSuffixCheckStrict(): bool
49
    {
50
        return true;
51
    }
52
53
    public function isArrayRequireValidationEnabled(): bool
54
    {
55
        return true;
56
    }
57
}
58