public function registerFieldMapper(FieldMapper $fieldMapper)
    {
        $targetFields = $fieldMapper->getSupportedFields();

        foreach ($targetFields as $fieldName) {
            $this->fieldMappers[$fieldName] = $fieldMapper;
        }
    }
public function registerFieldMapper(FieldMapper $fieldMapper)
    {
        $targetFields = $fieldMapper->getSupportedFields();

        foreach ($targetFields as $fieldName) {
            $this->fieldMappers[$fieldName] = $fieldMapper;
        }
    }
public function registerFieldMapper ( FieldMapper $ fieldMapper ) { $ targetFields = $ fieldMapper -> getSupportedFields ( ) ; foreach ( $ targetFields as $ fieldName ) { $ this -> fieldMappers [ $ fieldName ] = $ fieldMapper ; } }
Registers given FieldMapper instance
Allows overwriting an already existing mapper for a given field

@param FieldMapper $fieldMapper

@return void
Registers given FieldMapper instance Allows overwriting an already existing mapper for a given field