src/Shell/SeedShell.php
protected function getCombinedFieldValueBasedOnType(string $type, string $moduleName, string $fieldName) : array
    {
        $values = [];

        if (strpos($type, 'money') !== false) {
            $values[$fieldName . '_amount'] = $this->getFieldValueBasedOnType('decimal', $moduleName);
            $values[$fieldName . '_currency'] = $this->getFieldValueBasedOnType($type, $moduleName);
        }
        if (strpos($type, 'metric') !== false) {
            $values[$fieldName . '_amount'] = $this->getFieldValueBasedOnType('decimal', $moduleName);
            $values[$fieldName . '_unit'] = $this->getFieldValueBasedOnType($type, $moduleName);
        }

        return $values;
    }
protected function getCombinedFieldValueBasedOnType(string $type, string $moduleName, string $fieldName) : array
    {
        $values = [];

        if (strpos($type, 'money') !== false) {
            $values[$fieldName . '_amount'] = $this->getFieldValueBasedOnType('decimal', $moduleName);
            $values[$fieldName . '_currency'] = $this->getFieldValueBasedOnType($type, $moduleName);
        }
        if (strpos($type, 'metric') !== false) {
            $values[$fieldName . '_amount'] = $this->getFieldValueBasedOnType('decimal', $moduleName);
            $values[$fieldName . '_unit'] = $this->getFieldValueBasedOnType($type, $moduleName);
        }

        return $values;
    }
protected function getCombinedFieldValueBasedOnType ( string $ type , string $ moduleName , string $ fieldName ) : array { $ values = [ ] ; if ( strpos ( $ type , 'money' ) !== false ) { $ values [ $ fieldName . '_amount' ] = $ this -> getFieldValueBasedOnType ( 'decimal' , $ moduleName ) ; $ values [ $ fieldName . '_currency' ] = $ this -> getFieldValueBasedOnType ( $ type , $ moduleName ) ; } if ( strpos ( $ type , 'metric' ) !== false ) { $ values [ $ fieldName . '_amount' ] = $ this -> getFieldValueBasedOnType ( 'decimal' , $ moduleName ) ; $ values [ $ fieldName . '_unit' ] = $ this -> getFieldValueBasedOnType ( $ type , $ moduleName ) ; } return $ values ; }
if the type is money,metric will return the multifield values based on the type.

@param string $type type.
@param string $moduleName moduleName.
@param string $fieldName fieldName.
@return mixed[]
if the type is money metric will return the multifield values based on the type .