1 | <?php |
||
24 | class ExportManager |
||
25 | { |
||
26 | /** |
||
27 | * @var TranslationManager |
||
28 | */ |
||
29 | private $translationManager; |
||
30 | |||
31 | /** |
||
32 | * @var YmlExport |
||
33 | */ |
||
34 | private $exporter; |
||
35 | |||
36 | /** |
||
37 | * @var ParameterBag |
||
38 | */ |
||
39 | private $loadersContainer; |
||
40 | |||
41 | /** |
||
42 | * @var array |
||
43 | */ |
||
44 | private $managedLocales = []; |
||
45 | |||
46 | /** |
||
47 | * @var Translation[] |
||
48 | */ |
||
49 | private $refresh = []; |
||
50 | |||
51 | /** |
||
52 | * @param ParameterBag $loadersContainer |
||
53 | * @param TranslationManager $translationManager |
||
54 | * @param YmlExport $exporter |
||
55 | */ |
||
56 | public function __construct( |
||
65 | |||
66 | /** |
||
67 | * Sets managed locales. |
||
68 | * |
||
69 | * @param array $managedLocales |
||
70 | */ |
||
71 | public function setManagedLocales($managedLocales) |
||
75 | |||
76 | /** |
||
77 | * @return array |
||
78 | */ |
||
79 | public function getManagedLocales() |
||
83 | |||
84 | /** |
||
85 | * Exports translations from ES to files. |
||
86 | * |
||
87 | * @param array $domains To export. |
||
88 | * @param bool $force |
||
89 | */ |
||
90 | public function export($domains = [], $force = null) |
||
108 | |||
109 | /** |
||
110 | * Get translations for export. |
||
111 | * |
||
112 | * @param array $domains To read from storage. |
||
113 | * @param bool $force Determines if the message status is relevant. |
||
114 | * |
||
115 | * @return array |
||
116 | */ |
||
117 | private function formExportList($domains, $force) |
||
150 | } |
||
151 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.