Passed
Push — master ( 8bc352...8ff5f6 )
by Serhii
58:49 queued 20:45
created

TransferConfig::isArrayRequireValidationEnabled()   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
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 list<string>
18
     */
19
    public function getEntitiesSourceDirectories(): array
20
    {
21
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(Pyz\Zed\Tra.../Orm/Propel/*/Schema/') returns the type array<integer,string> which is incompatible with the documented return type Pyz\Zed\Transfer\list.
Loading history...
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
     * We use strict validation for case sensitive declaration for all new projects.
39
     *
40
     * @return bool
41
     */
42
    public function isCaseValidated(): bool
43
    {
44
        return true;
45
    }
46
47
    /**
48
     * We use strict validation for collections and singular definition for all new projects.
49
     *
50
     * @return bool
51
     */
52
    public function isSingularRequired(): bool
53
    {
54
        return false;
55
    }
56
57
    /**
58
     * @return bool
59
     */
60
    public function isTransferXmlValidationEnabled(): bool
61
    {
62
        return true;
63
    }
64
65
    /**
66
     * @return bool
67
     */
68
    public function isTransferSuffixCheckStrict(): bool
69
    {
70
        return true;
71
    }
72
73
    public function isArrayRequireValidationEnabled(): bool
74
    {
75
        return true;
76
    }
77
}
78