Source of file Translator.php
Size: 0,997 Bytes - Last Modified: 2017-11-08T13:54:24+00:00
/home/travis/build/bluzphp/framework/src/Proxy/Translator.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | <?php /** * Bluz Framework Component * * @copyright Bluz PHP Team * @link https://github.com/bluzphp/framework */ declare(strict_types=1); namespace Bluz\Proxy; use Bluz\Translator\Translator as Instance; /** * Proxy to Translator * * Example of usage * <code> * use Bluz\Proxy\Translator; * * echo Translator::translate('message id'); * </code> * * @package Bluz\Proxy * @author Anton Shevchuk * * @method static Instance getInstance() * * @method static string translate($message, ...$text) * @see Instance::translate() * * @method static string translatePlural($singular, $plural, $number, ...$text) * @see Instance::translatePlural() */ final class Translator { use ProxyTrait; /** * Init instance * * @return Instance */ private static function initInstance() { $instance = new Instance(); $instance->setOptions(Config::getData('translator')); return $instance; } } |