1 | <?php |
||
19 | final class Configuration |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $name; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | private $locales; |
||
30 | |||
31 | /** |
||
32 | * Usually dirname('kernel.root_dir'). |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | private $projectRoot; |
||
37 | |||
38 | /** |
||
39 | * This is where we dump all translations. |
||
40 | * |
||
41 | * @var string |
||
42 | */ |
||
43 | private $outputDir; |
||
44 | |||
45 | /** |
||
46 | * The absolute path to folders we scan for translations. |
||
47 | * |
||
48 | * @var array |
||
49 | */ |
||
50 | private $dirs; |
||
51 | |||
52 | /** |
||
53 | * Directories we should not extract translations from. |
||
54 | * |
||
55 | * @var array |
||
56 | */ |
||
57 | private $excludedDirs; |
||
58 | |||
59 | /** |
||
60 | * File names we should not extract translations from. |
||
61 | * |
||
62 | * @var array |
||
63 | */ |
||
64 | private $excludedNames; |
||
65 | |||
66 | /** |
||
67 | * Directories that holds translation files but is out of our control. |
||
68 | * |
||
69 | * @var array |
||
70 | */ |
||
71 | private $externalTranslationsDirs; |
||
72 | |||
73 | /** |
||
74 | * The format we store translation files in. |
||
75 | * |
||
76 | * @var string |
||
77 | */ |
||
78 | private $outputFormat; |
||
79 | |||
80 | /** |
||
81 | * @var array |
||
82 | */ |
||
83 | private $blacklistDomains; |
||
84 | |||
85 | /** |
||
86 | * @var array |
||
87 | */ |
||
88 | private $whitelistDomains; |
||
89 | |||
90 | /** |
||
91 | * @param array $data |
||
92 | */ |
||
93 | 3 | public function __construct(array $data) |
|
107 | |||
108 | /** |
||
109 | * @return string |
||
110 | */ |
||
111 | 1 | public function getName() |
|
115 | |||
116 | /** |
||
117 | * @return array |
||
118 | */ |
||
119 | 1 | public function getLocales() |
|
123 | |||
124 | /** |
||
125 | * @return string |
||
126 | */ |
||
127 | 1 | public function getProjectRoot() |
|
131 | |||
132 | /** |
||
133 | * @return string |
||
134 | */ |
||
135 | 3 | public function getOutputDir() |
|
139 | |||
140 | /** |
||
141 | * @return array |
||
142 | */ |
||
143 | 1 | public function getDirs() |
|
147 | |||
148 | /** |
||
149 | * @return array |
||
150 | */ |
||
151 | 1 | public function getExcludedDirs() |
|
155 | |||
156 | /** |
||
157 | * @return array |
||
158 | */ |
||
159 | 1 | public function getExcludedNames() |
|
163 | |||
164 | /** |
||
165 | * @return array |
||
166 | */ |
||
167 | 1 | public function getExternalTranslationsDirs() |
|
171 | |||
172 | /** |
||
173 | * @return string |
||
174 | */ |
||
175 | 1 | public function getOutputFormat() |
|
179 | |||
180 | /** |
||
181 | * @return array |
||
182 | */ |
||
183 | 1 | public function getBlacklistDomains() |
|
187 | |||
188 | /** |
||
189 | * @return array |
||
190 | */ |
||
191 | 1 | public function getWhitelistDomains() |
|
195 | |||
196 | /** |
||
197 | * Get all paths where translation paths are stored. Both external files and |
||
198 | * files created by us. |
||
199 | * |
||
200 | * @return array |
||
201 | */ |
||
202 | 1 | public function getPathsToTranslationFiles() |
|
206 | } |
||
207 |