404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.137.220.199: ~ $
<?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)
    {
        $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);
        }
    }
}

Filemanager

Name Type Size Permission Actions
Cli Folder 0755
Doctrine Folder 0755
Exceptions Folder 0755
Lang Folder 0755
Laravel Folder 0755
List Folder 0755
MessageFormatter Folder 0755
PHPStan Folder 0755
Traits Folder 0755
AbstractTranslator.php File 10.44 KB 0644
Carbon.php File 91.91 KB 0644
CarbonConverterInterface.php File 417 B 0644
CarbonImmutable.php File 93.42 KB 0644
CarbonInterface.php File 240.88 KB 0644
CarbonInterval.php File 94.69 KB 0644
CarbonPeriod.php File 81.81 KB 0644
CarbonPeriodImmutable.php File 716 B 0644
CarbonTimeZone.php File 8.53 KB 0644
Factory.php File 55.94 KB 0644
FactoryImmutable.php File 53.62 KB 0644
Language.php File 7.15 KB 0644
Translator.php File 806 B 0644
TranslatorImmutable.php File 2.27 KB 0644
TranslatorStrongTypeInterface.php File 551 B 0644