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);
}