protected function generateFractions()
    {
        $model = $this->cldrRepository->getModel('supplemental/supplementalData');
        $currencyData = $model->getRawArray('currencyData');

        foreach ($currencyData['fractions'] as $fractionString) {
            $currencyCode = $model->getAttributeValue($fractionString, 'iso4217');
            $this->fractions[$currencyCode] = [
                'digits' => (int)$model->getAttributeValue($fractionString, 'digits'),
                'rounding' => (int)$model->getAttributeValue($fractionString, 'rounding')
            ];
        }
    }
protected function generateFractions()
    {
        $model = $this->cldrRepository->getModel('supplemental/supplementalData');
        $currencyData = $model->getRawArray('currencyData');

        foreach ($currencyData['fractions'] as $fractionString) {
            $currencyCode = $model->getAttributeValue($fractionString, 'iso4217');
            $this->fractions[$currencyCode] = [
                'digits' => (int)$model->getAttributeValue($fractionString, 'digits'),
                'rounding' => (int)$model->getAttributeValue($fractionString, 'rounding')
            ];
        }
    }
protected function generateFractions ( ) { $ model = $ this -> cldrRepository -> getModel ( 'supplemental/supplementalData' ) ; $ currencyData = $ model -> getRawArray ( 'currencyData' ) ; foreach ( $ currencyData [ 'fractions' ] as $ fractionString ) { $ currencyCode = $ model -> getAttributeValue ( $ fractionString , 'iso4217' ) ; $ this -> fractions [ $ currencyCode ] = [ 'digits' => ( int ) $ model -> getAttributeValue ( $ fractionString , 'digits' ) , 'rounding' => ( int ) $ model -> getAttributeValue ( $ fractionString , 'rounding' ) ] ; } }
Generates an internal representation of currency fractions which can be found
in supplementalData.xml CLDR file.

@return void
@see CurrencyReader::$fractions
Generates an internal representation of currency fractions which can be found in supplementalData . xml CLDR file .