X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/nesbot/carbon/src/Carbon
home
/
prisjneg
/
public_html
/
vendor
/
nesbot
/
carbon
/
src
/
Carbon
/
📁
..
📄
AbstractTranslator.php
(10.49 KB)
📄
Carbon.php
(96.93 KB)
📄
CarbonConverterInterface.php
(417 B)
📄
CarbonImmutable.php
(98.44 KB)
📄
CarbonInterface.php
(241.46 KB)
📄
CarbonInterval.php
(103.57 KB)
📄
CarbonPeriod.php
(82.86 KB)
📄
CarbonPeriodImmutable.php
(870 B)
📄
CarbonTimeZone.php
(8.53 KB)
📁
Cli
📁
Exceptions
📄
Factory.php
(55.94 KB)
📄
FactoryImmutable.php
(53.79 KB)
📁
Lang
📄
Language.php
(7.15 KB)
📁
Laravel
📁
List
📁
MessageFormatter
📁
PHPStan
📁
Traits
📄
Translator.php
(806 B)
📄
TranslatorImmutable.php
(2.28 KB)
📄
TranslatorStrongTypeInterface.php
(551 B)
📁
requests
Editing: TranslatorImmutable.php
<?php /** * This file is part of the Carbon package. * * (c) Brian Nesbitt <brian@nesbot.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Carbon; use Carbon\Exceptions\ImmutableException; use Symfony\Component\Config\ConfigCacheFactoryInterface; use Symfony\Component\Translation\Formatter\MessageFormatterInterface; class TranslatorImmutable extends Translator { /** @var bool */ private $constructed = false; public function __construct($locale, ?MessageFormatterInterface $formatter = null, $cacheDir = null, $debug = false) { parent::__construct($locale, $formatter, $cacheDir, $debug); $this->constructed = true; } /** * @codeCoverageIgnore */ public function setDirectories(array $directories) { $this->disallowMutation(__METHOD__); return parent::setDirectories($directories); } public function setLocale($locale) { $this->disallowMutation(__METHOD__); return parent::setLocale($locale); } /** * @codeCoverageIgnore */ public function setMessages($locale, $messages) { $this->disallowMutation(__METHOD__); return parent::setMessages($locale, $messages); } /** * @codeCoverageIgnore */ public function setTranslations($messages) { $this->disallowMutation(__METHOD__); return parent::setTranslations($messages); } /** * @codeCoverageIgnore */ public function setConfigCacheFactory(ConfigCacheFactoryInterface $configCacheFactory): void { $this->disallowMutation(__METHOD__); parent::setConfigCacheFactory($configCacheFactory); } public function resetMessages($locale = null) { $this->disallowMutation(__METHOD__); return parent::resetMessages($locale); } /** * @codeCoverageIgnore */ public function setFallbackLocales(array $locales) { $this->disallowMutation(__METHOD__); parent::setFallbackLocales($locales); } private function disallowMutation($method) { if ($this->constructed) { throw new ImmutableException($method.' not allowed on '.static::class); } } }
Upload File
Create Folder