composer package updates
[openemr.git] / vendor / symfony / translation / TranslatorBagInterface.php
blob5e49e2ddc545526dad43331416179eae0b2c1a4b
1 <?php
3 /*
4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Translation;
14 use Symfony\Component\Translation\Exception\InvalidArgumentException;
16 /**
17 * TranslatorBagInterface.
19 * @author Abdellatif Ait boudad <a.aitboudad@gmail.com>
21 interface TranslatorBagInterface
23 /**
24 * Gets the catalogue by locale.
26 * @param string|null $locale The locale or null to use the default
28 * @return MessageCatalogueInterface
30 * @throws InvalidArgumentException If the locale contains invalid characters
32 public function getCatalogue($locale = null);