public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/web/inc/lib/vendor/symfony/translation/MetadataAwareInterface.php
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
<?php
3
/*
4
* This file is part of the Symfony package.
5
*
6
* (c) Fabien Potencier <[email protected]>
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
12
namespace Symfony\Component\Translation;
14
/**
15
* This interface is used to get, set, and delete metadata about the translation messages.
16
*
17
* @author Fabien Potencier <[email protected]>
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;
32
/**
33
* Adds metadata to a message domain.
34
*
35
* @return void
36
*/
37
public function setMetadata(string $key, mixed $value, string $domain = 'messages');
39
/**
40
* Deletes metadata for the given key and domain.
41
*
42
* Passing an empty domain will delete all metadata. Passing an empty key will
43
* delete all metadata for the given domain.
44
*
45
* @return void
46
*/
47
public function deleteMetadata(string $key = '', string $domain = 'messages');
48
}