src/FieldHandlers/FieldHandler.php
public static function fieldToDb(CsvField $csvField) : array
    {
        $config = ConfigFactory::getByType($csvField->getType(), $csvField->getName());
        $fieldToDb = $config->getProvider('fieldToDb');
        $fieldToDb = new $fieldToDb($config);
        $result = $fieldToDb->provide($csvField);

        return $result;
    }
public static function fieldToDb(CsvField $csvField) : array
    {
        $config = ConfigFactory::getByType($csvField->getType(), $csvField->getName());
        $fieldToDb = $config->getProvider('fieldToDb');
        $fieldToDb = new $fieldToDb($config);
        $result = $fieldToDb->provide($csvField);

        return $result;
    }
public static function fieldToDb ( CsvField $ csvField ) : array { $ config = ConfigFactory :: getByType ( $ csvField -> getType ( ) , $ csvField -> getName ( ) ) ; $ fieldToDb = $ config -> getProvider ( 'fieldToDb' ) ; $ fieldToDb = new $ fieldToDb ( $ config ) ; $ result = $ fieldToDb -> provide ( $ csvField ) ; return $ result ; }
Convert CsvField to one or more DbField instances

Simple fields from migrations CSV map one-to-one to
the database fields.  More complex fields can combine
multiple database fields for a single CSV entry.

@param  \CsvMigrations\FieldHandlers\CsvField $csvField CsvField instance
@return array                                           DbField instances
Convert CsvField to one or more DbField instances