wp-user-avatar
/
third-party
/
vendor
/
symfony
/
translation
/
Writer
/
TranslationWriterInterface.php
TranslationWriterInterface.php
32 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 ProfilePressVendor\Symfony\Component\Translation\Writer; |
| 12 | |
| 13 | use ProfilePressVendor\Symfony\Component\Translation\Exception\InvalidArgumentException; |
| 14 | use ProfilePressVendor\Symfony\Component\Translation\MessageCatalogue; |
| 15 | /** |
| 16 | * TranslationWriter writes translation messages. |
| 17 | * |
| 18 | * @author Michel Salib <michelsalib@hotmail.com> |
| 19 | */ |
| 20 | interface TranslationWriterInterface |
| 21 | { |
| 22 | /** |
| 23 | * Writes translation from the catalogue according to the selected format. |
| 24 | * |
| 25 | * @param string $format The format to use to dump the messages |
| 26 | * @param array $options Options that are passed to the dumper |
| 27 | * |
| 28 | * @throws InvalidArgumentException |
| 29 | */ |
| 30 | public function write(MessageCatalogue $catalogue, string $format, array $options = []); |
| 31 | } |
| 32 |