| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class UntranslatedMessageExporter |
||
| 11 | { |
||
| 12 | /** @var MessageStorage */ |
||
| 13 | private $storage; |
||
| 14 | |||
| 15 | 9 | public function __construct(MessageStorage $storage) |
|
| 18 | 9 | } |
|
| 19 | |||
| 20 | /** |
||
| 21 | * Export untranslated messages to a PO file string. |
||
| 22 | * If no messages exist, empty string is returned. |
||
| 23 | * |
||
| 24 | * @param string $locale |
||
| 25 | * @param string $domain |
||
| 26 | * @return string PO file contents or empty string if nothing to export |
||
| 27 | */ |
||
| 28 | 8 | public function exportPoString(string $locale, string $domain): string |
|
| 37 | } |
||
| 38 | } |