/
MetadataAwareInterface.php
45 lines (40 loc) · 1.08 KB
/
MetadataAwareInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Translation;
/**
* MetadataAwareInterface.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
interface MetadataAwareInterface
{
/**
* Gets meta data for given domain and key.
*
* @param string $domain The domain name
* @param string $key Key
*/
public function getMetadata($key = '', $domain = 'messages');
/**
* Adds meta data to a message domain.
*
* @param string $key Key
* @param string|array $value Value
* @param string $domain The domain name
*/
public function setMetadata($key, $value, $domain = 'messages');
/**
* Deletes meta data for given key and domain.
*
* @param string $domain The domain name
* @param string $key Key
*/
public function deleteMetadata($key = '', $domain = 'messages');
}