Passed
Pull Request — master (#781)
by Anna
37:40
created

TransferConfig   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A isTransferNameValidated() 0 3 1
A isTransferSuffixCheckStrict() 0 3 1
A isTransferXmlValidationEnabled() 0 3 1
A getEntitiesSourceDirectories() 0 4 1
A isArrayRequireValidationEnabled() 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\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