48 lines
1.2 KiB
PHP
48 lines
1.2 KiB
PHP
|
<?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;
|
||
|
|
||
|
use Symfony\Component\Config\Resource\ResourceInterface;
|
||
|
|
||
|
/**
|
||
|
* MetadataAwareInterface.
|
||
|
*
|
||
|
* @author Fabien Potencier <fabien@symfony.com>
|
||
|
*/
|
||
|
interface MetadataAwareInterface
|
||
|
{
|
||
|
/**
|
||
|
* Gets meta data for given domain and key.
|
||
|
*
|
||
|
* @param string $key Key to set
|
||
|
* @param string $domain The domain name
|
||
|
*/
|
||
|
public function getMetadata($domain = '', $key = '');
|
||
|
|
||
|
/**
|
||
|
* Adds meta data to a message domain.
|
||
|
*
|
||
|
* @param string $key Key to set
|
||
|
* @param string|array $value Value to store
|
||
|
* @param string $domain The domain name
|
||
|
*/
|
||
|
public function setMetadata($key, $value, $domain = 'messages');
|
||
|
|
||
|
/**
|
||
|
* Deletes meta data for given key and domain.
|
||
|
*
|
||
|
* @param string $key Key to set
|
||
|
* @param string $domain The domain name
|
||
|
*/
|
||
|
public function deleteMetadata($domain = '', $key = '');
|
||
|
}
|