Total Complexity | 6 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | class UntranslatedMessageZipExporter |
||
13 | { |
||
14 | /** @var UntranslatedMessageExporter */ |
||
15 | private $exporter; |
||
16 | |||
17 | /** @var MessageConfigInterface */ |
||
18 | private $config; |
||
19 | |||
20 | 3 | public function __construct(MessageConfigInterface $config, UntranslatedMessageExporter $exporter) |
|
24 | 3 | } |
|
25 | |||
26 | /** |
||
27 | * Create a zip archive with messages that require translations |
||
28 | * |
||
29 | * @param string $zipPathname Full pathname to the file where the ZIP archive should be written |
||
30 | * @param string $locale |
||
31 | * @param string[]|null $domains Domains to export. If not provided, export all domains in config |
||
32 | * @return bool |
||
33 | */ |
||
34 | 3 | public function export(string $zipPathname, string $locale, array $domains = null): bool |
|
60 | } |
||
61 | } |