package and depencies
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
namespace Symfony\Component\Translation;
|
||||
|
||||
/**
|
||||
* MetadataAwareInterface.
|
||||
* This interface is used to get, set, and delete metadata about the translation messages.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*/
|
||||
@@ -27,14 +27,12 @@ interface MetadataAwareInterface
|
||||
*
|
||||
* @return mixed The value that was set or an array with the domains/keys or null
|
||||
*/
|
||||
public function getMetadata(string $key = '', string $domain = 'messages');
|
||||
public function getMetadata(string $key = '', string $domain = 'messages'): mixed;
|
||||
|
||||
/**
|
||||
* Adds metadata to a message domain.
|
||||
*
|
||||
* @param mixed $value
|
||||
*/
|
||||
public function setMetadata(string $key, $value, string $domain = 'messages');
|
||||
public function setMetadata(string $key, mixed $value, string $domain = 'messages');
|
||||
|
||||
/**
|
||||
* Deletes metadata for the given key and domain.
|
||||
|
Reference in New Issue
Block a user