/home/techb158/ileadtechnology.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
CHANGELOG.md66980644editdlrm
composer.json19450644editdlrm
DataCollectorTranslator.php47620644editdlrm
IdentityTranslator.php6610644editdlrm
LICENSE10680644editdlrm
LoggingTranslator.php37410644editdlrm
MessageCatalogue.php85620644editdlrm
MessageCatalogueInterface.php35160644editdlrm
MetadataAwareInterface.php13210644editdlrm
PseudoLocalizationTranslator.php111000644editdlrm
README.md14640644editdlrm
TranslatableMessage.php15930644editdlrm
Translator.php145130644editdlrm
TranslatorBag.php31940644editdlrm
TranslatorBagInterface.php9060644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/symfony/translation/TranslatableMessage.php (1593B)
* * 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 $message; private $parameters; private $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 function ($parameter) use ($translator, $locale) { return $parameter instanceof TranslatableInterface ? $parameter->trans($translator, $locale) : $parameter; }, $this->getParameters() ), $this->getDomain(), $locale); } }