TranslationWriterInterface.php
33 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace IAWPSCOPED\Symfony\Component\Translation\Writer; |
| 12 | |
| 13 | use IAWPSCOPED\Symfony\Component\Translation\Exception\InvalidArgumentException; |
| 14 | use IAWPSCOPED\Symfony\Component\Translation\MessageCatalogue; |
| 15 | /** |
| 16 | * TranslationWriter writes translation messages. |
| 17 | * |
| 18 | * @author Michel Salib <michelsalib@hotmail.com> |
| 19 | * @internal |
| 20 | */ |
| 21 | interface TranslationWriterInterface |
| 22 | { |
| 23 | /** |
| 24 | * Writes translation from the catalogue according to the selected format. |
| 25 | * |
| 26 | * @param string $format The format to use to dump the messages |
| 27 | * @param array $options Options that are passed to the dumper |
| 28 | * |
| 29 | * @throws InvalidArgumentException |
| 30 | */ |
| 31 | public function write(MessageCatalogue $catalogue, string $format, array $options = []); |
| 32 | } |
| 33 |