Completed
Push — master ( c13f2b...7991e8 )
by Dima
49s queued 18s
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
     * We use strict validation for case sensitive declaration for all new projects.
40
     *
41
     * @return bool
42
     */
43
    public function isCaseValidated(): bool
44
    {
45
        return true;
46
    }
47
48
    /**
49
     * We use strict validation for collections and singular definition for all new projects.
50
     *
51
     * @return bool
52
     */
53
    public function isSingularRequired(): bool
54
    {
55
        return false;
56
    }
57
58
    /**
59
     * @return bool
60
     */
61
    public function isTransferXmlValidationEnabled(): bool
62
    {
63
        return true;
64
    }
65
66
    /**
67
     * @return string
68
     */
69
    public function getPropertyDescriptionMergeStrategy(): string
70
    {
71
        return TransferConstants::PROPERTY_DESCRIPTION_MERGE_STRATEGY_GET_FIRST;
72
    }
73
74
    /**
75
     * @return bool
76
     */
77
    public function isTransferSuffixCheckStrict(): bool
78
    {
79
        return true;
80
    }
81
}
82