| 1 | <?php |
||
| 10 | trait DictionaryTrait |
||
| 11 | { |
||
| 12 | use HeadersGeneratorTrait; |
||
| 13 | use HeadersExtractorTrait; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Returns a plain dictionary with the format [original => translation]. |
||
| 17 | * |
||
| 18 | * @param Translations $translations |
||
| 19 | * @param bool $includeHeaders |
||
| 20 | * |
||
| 21 | * @return array |
||
| 22 | */ |
||
| 23 | private static function toArray(Translations $translations, $includeHeaders) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Extract the entries from a dictionary. |
||
| 40 | * |
||
| 41 | * @param array $messages |
||
| 42 | * @param Translations $translations |
||
| 43 | */ |
||
| 44 | private static function fromArray(array $messages, Translations $translations) |
||
| 55 | } |
||
| 56 |