0 follower

Final Class Yiisoft\Translator\IdMessageReader

InheritanceYiisoft\Translator\IdMessageReader
ImplementsYiisoft\Translator\MessageReaderInterface

ID message reader returns ID as message and doesn't support getting all messages at once.

Method Details

Hide inherited methods

getMessage() public method

public string getMessage ( string $id, string $category, string $locale, array $parameters = [] )
$id string
$category string
$locale string
$parameters array

                public function getMessage(string $id, string $category, string $locale, array $parameters = []): string
{
    return $id;
}

            
getMessages() public method

public array getMessages ( string $category, string $locale )
$category string
$locale string

                public function getMessages(string $category, string $locale): array
{
    throw new RuntimeException('IdMessageReader doesn\'t support getting all messages at once.');
}