| 1 | <?php |
||
| 13 | abstract class Loader implements LoaderInterface |
||
| 14 | { |
||
| 15 | public function loadFile(string $filename, Translations $translations = null): Translations |
||
| 21 | |||
| 22 | public function loadString(string $string, Translations $translations = null): Translations |
||
| 26 | |||
| 27 | protected function createTranslations(): Translations |
||
| 31 | |||
| 32 | protected function createTranslation(?string $context, string $original, string $plural = null): ?Translation |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Reads and returns the content of a file. |
||
| 45 | */ |
||
| 46 | protected static function readFile(string $file): string |
||
| 59 | } |
||
| 60 |