src/Currency.php
protected function fill(array $data)
    {
        $this->isoCode = $data['iso_code'];
        $this->name = $data['name'];
        $this->symbol = $data['symbol'];
        $this->subunit = $data['subunit'];
        $this->symbolFirst = $data['symbol_first'];
        $this->htmlEntity = $data['html_entity'];
        $this->decimalMark = $data['decimal_mark'];
        $this->thousandsSeparator = $data['thousands_separator'];
        $this->isoNumeric = $data['iso_numeric'];

        if (array_key_exists('alternate_symbols', $data)) {
            $this->alternateSymbols = $data['alternate_symbols'];
        }

        if (array_key_exists('disambiguate_symbol', $data)) {
            $this->disambiguateSymbol = $data['disambiguate_symbol'];
        }
    }
protected function fill(array $data)
    {
        $this->isoCode = $data['iso_code'];
        $this->name = $data['name'];
        $this->symbol = $data['symbol'];
        $this->subunit = $data['subunit'];
        $this->symbolFirst = $data['symbol_first'];
        $this->htmlEntity = $data['html_entity'];
        $this->decimalMark = $data['decimal_mark'];
        $this->thousandsSeparator = $data['thousands_separator'];
        $this->isoNumeric = $data['iso_numeric'];

        if (array_key_exists('alternate_symbols', $data)) {
            $this->alternateSymbols = $data['alternate_symbols'];
        }

        if (array_key_exists('disambiguate_symbol', $data)) {
            $this->disambiguateSymbol = $data['disambiguate_symbol'];
        }
    }
protected function fill ( array $ data ) { $ this -> isoCode = $ data [ 'iso_code' ] ; $ this -> name = $ data [ 'name' ] ; $ this -> symbol = $ data [ 'symbol' ] ; $ this -> subunit = $ data [ 'subunit' ] ; $ this -> symbolFirst = $ data [ 'symbol_first' ] ; $ this -> htmlEntity = $ data [ 'html_entity' ] ; $ this -> decimalMark = $ data [ 'decimal_mark' ] ; $ this -> thousandsSeparator = $ data [ 'thousands_separator' ] ; $ this -> isoNumeric = $ data [ 'iso_numeric' ] ; if ( array_key_exists ( 'alternate_symbols' , $ data ) ) { $ this -> alternateSymbols = $ data [ 'alternate_symbols' ] ; } if ( array_key_exists ( 'disambiguate_symbol' , $ data ) ) { $ this -> disambiguateSymbol = $ data [ 'disambiguate_symbol' ] ; } }
Protected setter for all fields

@param array $data
Protected setter for all fields