protected function inferRow($row)
    {
        $rowFields = [];
        foreach ($row as $k => $v) {
            $rowFields[$k] = FieldsFactory::infer($v, (object) ['name' => $k], $this->lenient);
        }

        return $rowFields;
    }
protected function inferRow($row)
    {
        $rowFields = [];
        foreach ($row as $k => $v) {
            $rowFields[$k] = FieldsFactory::infer($v, (object) ['name' => $k], $this->lenient);
        }

        return $rowFields;
    }
protected function inferRow ( $ row ) { $ rowFields = [ ] ; foreach ( $ row as $ k => $ v ) { $ rowFields [ $ k ] = FieldsFactory :: infer ( $ v , ( object ) [ 'name' => $ k ] , $ this -> lenient ) ; } return $ rowFields ; }
infer field objects for the given row
raises exception if fails to infer a field.

@param $row array field name => value to infer by

@return array field name => inferred field object

@throws FieldValidationException
infer field objects for the given row raises exception if fails to infer a field .