Prado\I18N\core\NumberFormatInfo::__construct PHP 메소드

__construct() 공개 메소드

Initializes a new writable instance of the NumberFormatInfo class that is dependent on the ICU data for number, decimal, and currency formatting information. N.B.You should not initialize this class directly unless you know what you are doing. Please use use NumberFormatInfo::getInstance() to create an instance.
또한 보기: getInstance()
public __construct ( $data = [], $type = NumberFormatInfo::DECIMAL )
    public function __construct($data = array(), $type = NumberFormatInfo::DECIMAL)
    {
        $this->properties = get_class_methods($this);
        if (empty($data)) {
            throw new Exception('Please provide the ICU data to initialize.');
        }
        $this->data = $data;
        $this->setPattern($type);
    }