1 | <?php |
||
23 | class ImportManager |
||
24 | { |
||
25 | /** |
||
26 | * @var FileImport |
||
27 | */ |
||
28 | private $fileImport; |
||
29 | |||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | private $locales; |
||
34 | |||
35 | /** |
||
36 | * @var array |
||
37 | */ |
||
38 | private $domains; |
||
39 | |||
40 | /** |
||
41 | * @var array |
||
42 | */ |
||
43 | private $formats; |
||
44 | |||
45 | /** |
||
46 | * @var array |
||
47 | */ |
||
48 | private $translations = []; |
||
49 | |||
50 | /** |
||
51 | * @var Manager |
||
52 | */ |
||
53 | private $esManager; |
||
54 | |||
55 | /** |
||
56 | * @param FileImport $fileImport |
||
57 | * @param Manager $esManager |
||
58 | */ |
||
59 | public function __construct( |
||
66 | |||
67 | /** |
||
68 | * @return mixed |
||
69 | */ |
||
70 | public function getDomains() |
||
71 | { |
||
72 | return $this->domains; |
||
73 | } |
||
74 | |||
75 | /** |
||
76 | * @param mixed $domains |
||
77 | */ |
||
78 | public function setDomains($domains) |
||
79 | { |
||
80 | $this->domains = $domains; |
||
|
|||
81 | } |
||
82 | |||
83 | /** |
||
84 | * @return mixed |
||
85 | */ |
||
86 | public function getLocales() |
||
87 | { |
||
88 | return $this->locales; |
||
89 | } |
||
90 | |||
91 | /** |
||
92 | * @param mixed $locales |
||
93 | */ |
||
94 | public function setLocales($locales) |
||
95 | { |
||
96 | $this->locales = $locales; |
||
97 | } |
||
98 | |||
99 | /** |
||
100 | * @return mixed |
||
101 | */ |
||
102 | public function getFormats() |
||
103 | { |
||
104 | return $this->formats; |
||
105 | } |
||
106 | |||
107 | /** |
||
108 | * @param mixed $formats |
||
109 | */ |
||
110 | public function setFormats($formats) |
||
111 | { |
||
112 | $this->formats = $formats; |
||
113 | } |
||
114 | |||
115 | /** |
||
116 | * Write translations to storage. |
||
117 | */ |
||
118 | public function writeToStorage() |
||
139 | |||
140 | /** |
||
141 | * Imports translation files from a directory. |
||
142 | * @param string $dir |
||
143 | */ |
||
144 | public function importDirTranslationFiles($dir) |
||
149 | |||
150 | /** |
||
151 | * Imports translation files form all bundles. |
||
152 | * |
||
153 | * @param array $bundles |
||
154 | * @param bool $isBundle |
||
155 | */ |
||
156 | public function importBundlesTranslationFiles($bundles, $isBundle = false) |
||
166 | |||
167 | /** |
||
168 | * Return a Finder object if $path has a Resources/translations folder. |
||
169 | * |
||
170 | * @param string $path |
||
171 | * |
||
172 | * @return Finder |
||
173 | */ |
||
174 | protected function findTranslationsFiles($path) |
||
195 | |||
196 | /** |
||
197 | * @return string |
||
198 | */ |
||
199 | protected function getFileNamePattern() |
||
218 | |||
219 | /** |
||
220 | * Imports some translations files. |
||
221 | * |
||
222 | * @param Finder $finder |
||
223 | */ |
||
224 | protected function importTranslationFiles($finder) |
||
232 | } |
||
233 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..