Total Complexity | 5 |
Total Lines | 63 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
6 | final class ConfigProvider |
||
7 | { |
||
8 | public function __invoke(): array |
||
17 | ]; |
||
18 | } |
||
19 | |||
20 | private function getStockInputFilterSpec(): array |
||
21 | { |
||
22 | return [ |
||
23 | 'qty' => [ |
||
24 | 'filters' => [ |
||
25 | [ |
||
26 | 'name' => 'stringtrim', |
||
27 | ] |
||
28 | ], |
||
29 | 'validators' => [ |
||
30 | [ |
||
31 | 'name' => 'notempty', |
||
32 | ], |
||
33 | [ |
||
34 | 'name' => 'digits', |
||
35 | ], |
||
36 | ], |
||
37 | ], |
||
38 | ]; |
||
39 | } |
||
40 | |||
41 | private function getDoctrineConfig(): array |
||
42 | { |
||
43 | return [ |
||
44 | 'entity_managers' => [ |
||
45 | 'default' => [ |
||
46 | 'paths' => [ |
||
47 | 'src/Catalog/Entities', |
||
48 | 'vendor/my_awesome_paths', |
||
49 | ], |
||
50 | ], |
||
51 | ], |
||
52 | ]; |
||
53 | } |
||
54 | |||
55 | private function getDependenciesConfig(): array |
||
56 | { |
||
57 | return [ |
||
58 | 'factories' => [ |
||
59 | 'ProductHydrator' => '\SlayerBirden\DFCodeGeneration\Catalog\Factory\ProductHydratorFactory', |
||
60 | 'SomeAwesomeDep' => '\My\Awesome\Factory', |
||
61 | ], |
||
62 | ]; |
||
63 | } |
||
64 | |||
65 | private function getValidatorsConfig(): array |
||
69 | ]; |
||
70 | } |
||
71 | } |
||
72 |