Catalogue
2 years ago
Command
2 years ago
DataCollector
2 years ago
DependencyInjection
2 years ago
Dumper
2 years ago
Exception
2 years ago
Extractor
2 years ago
Formatter
2 years ago
Loader
2 years ago
Provider
2 years ago
Reader
2 years ago
Resources
2 years ago
Test
2 years ago
Util
2 years ago
Writer
2 years ago
DataCollectorTranslator.php
2 years ago
IdentityTranslator.php
2 years ago
LoggingTranslator.php
2 years ago
MessageCatalogue.php
2 years ago
MessageCatalogueInterface.php
2 years ago
MetadataAwareInterface.php
2 years ago
PseudoLocalizationTranslator.php
2 years ago
TranslatableMessage.php
2 years ago
Translator.php
2 years ago
TranslatorBag.php
2 years ago
TranslatorBagInterface.php
2 years ago
MetadataAwareInterface.php
45 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; |
| 12 | |
| 13 | /** |
| 14 | * MetadataAwareInterface. |
| 15 | * |
| 16 | * @author Fabien Potencier <fabien@symfony.com> |
| 17 | * @internal |
| 18 | */ |
| 19 | interface MetadataAwareInterface |
| 20 | { |
| 21 | /** |
| 22 | * Gets metadata for the given domain and key. |
| 23 | * |
| 24 | * Passing an empty domain will return an array with all metadata indexed by |
| 25 | * domain and then by key. Passing an empty key will return an array with all |
| 26 | * metadata for the given domain. |
| 27 | * |
| 28 | * @return mixed The value that was set or an array with the domains/keys or null |
| 29 | */ |
| 30 | public function getMetadata(string $key = '', string $domain = 'messages'); |
| 31 | /** |
| 32 | * Adds metadata to a message domain. |
| 33 | * |
| 34 | * @param mixed $value |
| 35 | */ |
| 36 | public function setMetadata(string $key, $value, string $domain = 'messages'); |
| 37 | /** |
| 38 | * Deletes metadata for the given key and domain. |
| 39 | * |
| 40 | * Passing an empty domain will delete all metadata. Passing an empty key will |
| 41 | * delete all metadata for the given domain. |
| 42 | */ |
| 43 | public function deleteMetadata(string $key = '', string $domain = 'messages'); |
| 44 | } |
| 45 |