Catalogue
1 month ago
Command
1 month ago
DataCollector
1 month ago
DependencyInjection
1 month ago
Dumper
1 month ago
Exception
1 month ago
Extractor
1 month ago
Formatter
1 month ago
Loader
1 month ago
Provider
1 month ago
Reader
1 month ago
Resources
1 month ago
Test
1 month ago
Util
1 month ago
Writer
1 month ago
DataCollectorTranslator.php
1 month ago
IdentityTranslator.php
2 years ago
LoggingTranslator.php
1 month ago
MessageCatalogue.php
1 month ago
MessageCatalogueInterface.php
1 month ago
MetadataAwareInterface.php
1 month ago
PseudoLocalizationTranslator.php
1 month ago
TranslatableMessage.php
1 month ago
Translator.php
1 month ago
TranslatorBag.php
1 month ago
TranslatorBagInterface.php
1 month ago
MetadataAwareInterface.php
43 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') : mixed; |
| 31 | /** |
| 32 | * Adds metadata to a message domain. |
| 33 | */ |
| 34 | public function setMetadata(string $key, mixed $value, string $domain = 'messages'); |
| 35 | /** |
| 36 | * Deletes metadata for the given key and domain. |
| 37 | * |
| 38 | * Passing an empty domain will delete all metadata. Passing an empty key will |
| 39 | * delete all metadata for the given domain. |
| 40 | */ |
| 41 | public function deleteMetadata(string $key = '', string $domain = 'messages'); |
| 42 | } |
| 43 |