src/models/Measure.php
public function getFormatter()
    {
        if ($this->formatterInstance === null) {
            $this->formatterInstance = Yii::createObject(
                [
                    'class' => '\yii\i18n\Formatter',
                    'decimalSeparator' => $this->decimal_separator,
                    'thousandSeparator' => $this->thousand_separator,
                    'numberFormatterOptions' => [
                        \NumberFormatter::MIN_FRACTION_DIGITS => $this->min_fraction_digits,
                        \NumberFormatter::MAX_FRACTION_DIGITS => $this->max_fraction_digits,
                    ]
                ]
            );
        }
        return $this->formatterInstance;
    }
public function getFormatter()
    {
        if ($this->formatterInstance === null) {
            $this->formatterInstance = Yii::createObject(
                [
                    'class' => '\yii\i18n\Formatter',
                    'decimalSeparator' => $this->decimal_separator,
                    'thousandSeparator' => $this->thousand_separator,
                    'numberFormatterOptions' => [
                        \NumberFormatter::MIN_FRACTION_DIGITS => $this->min_fraction_digits,
                        \NumberFormatter::MAX_FRACTION_DIGITS => $this->max_fraction_digits,
                    ]
                ]
            );
        }
        return $this->formatterInstance;
    }
public function getFormatter ( ) { if ( $ this -> formatterInstance === null ) { $ this -> formatterInstance = Yii :: createObject ( [ 'class' => '\yii\i18n\Formatter' , 'decimalSeparator' => $ this -> decimal_separator , 'thousandSeparator' => $ this -> thousand_separator , 'numberFormatterOptions' => [ \ NumberFormatter :: MIN_FRACTION_DIGITS => $ this -> min_fraction_digits , \ NumberFormatter :: MAX_FRACTION_DIGITS => $ this -> max_fraction_digits , ] ] ) ; } return $ this -> formatterInstance ; }
Returns \yii\i18n\Formatter instance for current Currency instance
@return \yii\i18n\Formatter
@throws InvalidConfigException
Returns \ yii \ i18n \ Formatter instance for current Currency instance