/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/I18n
NameSizeModeActions
Exception/-0755rm
Formatter/-0755rm
Middleware/-0755rm
Parser/-0755rm
ChainMessagesLoader.php23220644editdlrm
composer.json12810644editdlrm
Date.php74610644editdlrm
DateFormatTrait.php177740644editdlrm
FormatterInterface.php12760644editdlrm
FormatterLocator.php28640644editdlrm
FrozenDate.php72890644editdlrm
FrozenTime.php100630644editdlrm
functions.php88550644editdlrm
I18n.php96210644editdlrm
I18nDateTimeInterface.php97090644editdlrm
LICENSE.txt12040644editdlrm
MessagesFileLoader.php55550644editdlrm
Number.php180140644editdlrm
Package.php39720644editdlrm
PackageLocator.php34880644editdlrm
PluralRules.php58900644editdlrm
README.md28790644editdlrm
RelativeTimeFormatter.php152960644editdlrm
Time.php125870644editdlrm
Translator.php60140644editdlrm
TranslatorRegistry.php101990644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/I18n/Package.php (3972B)
*/ protected $messages = []; /** * The name of a fallback package to use when a message key does not * exist. * * @var string|null */ protected $fallback; /** * The name of the formatter to use when formatting translated messages. * * @var string */ protected $formatter; /** * Constructor. * * @param string $formatter The name of the formatter to use. * @param string|null $fallback The name of the fallback package to use. * @param array $messages The messages in this package. */ public function __construct( string $formatter = 'default', ?string $fallback = null, array $messages = [] ) { $this->formatter = $formatter; $this->fallback = $fallback; $this->messages = $messages; } /** * Sets the messages for this package. * * @param array $messages The messages for this package. * @return void */ public function setMessages(array $messages): void { $this->messages = $messages; } /** * Adds one message for this package. * * @param string $key the key of the message * @param array|string $message the actual message * @return void */ public function addMessage(string $key, $message): void { $this->messages[$key] = $message; } /** * Adds new messages for this package. * * @param array $messages The messages to add in this package. * @return void */ public function addMessages(array $messages): void { $this->messages = array_merge($this->messages, $messages); } /** * Gets the messages for this package. * * @return array */ public function getMessages(): array { return $this->messages; } /** * Gets the message of the given key for this package. * * @param string $key the key of the message to return * @return array|string|false The message translation, or false if not found. */ public function getMessage(string $key) { return $this->messages[$key] ?? false; } /** * Sets the formatter name for this package. * * @param string $formatter The formatter name for this package. * @return void */ public function setFormatter(string $formatter): void { $this->formatter = $formatter; } /** * Gets the formatter name for this package. * * @return string */ public function getFormatter(): string { return $this->formatter; } /** * Sets the fallback package name. * * @param string|null $fallback The fallback package name. * @return void */ public function setFallback(?string $fallback): void { $this->fallback = $fallback; } /** * Gets the fallback package name. * * @return string|null */ public function getFallback(): ?string { return $this->fallback; } }