/home/techb158/dev.balacoffee.com/vendor/symfony/translation
NameSizeModeActions
Catalogue/-0755rm
Command/-0755rm
DataCollector/-0755rm
DependencyInjection/-0755rm
Dumper/-0755rm
Exception/-0755rm
Extractor/-0755rm
Formatter/-0755rm
Loader/-0755rm
Provider/-0755rm
Reader/-0755rm
Resources/-0755rm
Test/-0755rm
Util/-0755rm
Writer/-0755rm
CatalogueMetadataAwareInterface.php14960644editdlrm
CHANGELOG.md74410644editdlrm
composer.json19320644editdlrm
DataCollectorTranslator.php45210644editdlrm
IdentityTranslator.php6610644editdlrm
LICENSE10680644editdlrm
LocaleSwitcher.php18730644editdlrm
LoggingTranslator.php35650644editdlrm
MessageCatalogue.php100420644editdlrm
MessageCatalogueInterface.php34770644editdlrm
MetadataAwareInterface.php14180644editdlrm
PseudoLocalizationTranslator.php111100644editdlrm
README.md10350644editdlrm
TranslatableMessage.php15440644editdlrm
Translator.php144420644editdlrm
TranslatorBag.php31260644editdlrm
TranslatorBagInterface.php9160644editdlrm
Edit: /home/techb158/dev.balacoffee.com/vendor/symfony/translation/TranslatableMessage.php (1544B)
* * 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\Contracts\Translation\TranslatableInterface; use Symfony\Contracts\Translation\TranslatorInterface; /** * @author Nate Wiebe */ class TranslatableMessage implements TranslatableInterface { private string $message; private array $parameters; private ?string $domain; public function __construct(string $message, array $parameters = [], string $domain = null) { $this->message = $message; $this->parameters = $parameters; $this->domain = $domain; } public function __toString(): string { return $this->getMessage(); } public function getMessage(): string { return $this->message; } public function getParameters(): array { return $this->parameters; } public function getDomain(): ?string { return $this->domain; } public function trans(TranslatorInterface $translator, string $locale = null): string { return $translator->trans($this->getMessage(), array_map( static fn ($parameter) => $parameter instanceof TranslatableInterface ? $parameter->trans($translator, $locale) : $parameter, $this->getParameters() ), $this->getDomain(), $locale); } }