%PDF- %GIF98; %PNG;
Server : ApacheSystem : 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 : |
<?php
/**
*
* This file is part of the Aura Project for PHP.
*
* @package Aura.Intl
*
* @license http://opensource.org/licenses/MIT MIT
*
*/
namespace Aura\Intl;
/**
*
* Creates new package instances.
*
* @package Aura.Intl
*
*/
class PackageFactory
{
/**
*
* Returns a new Package instance.
*
* @param array $info An array of package information with keys
* 'formatter', 'fallback', and 'messages'. Typically read from an
* `intl/xx_XX.php` file.
*
* @return Package
*
*/
public function newInstance(array $info)
{
$package = new Package;
if (isset($info['fallback'])) {
$package->setFallback($info['fallback']);
}
if (isset($info['formatter'])) {
$package->setFormatter($info['formatter']);
}
if (isset($info['messages'])) {
$package->setMessages($info['messages']);
}
return $package;
}
}