<?php

namespace App\Imports;

use App\Models\SocioExcel;
use Maatwebsite\Excel\Concerns\ToModel;

class SociosImport implements ToModel
{
    /**
    * @param array $row
    *
    * @return SocioExcel|null
    */
    public function model(array $row)
    {
        return new SocioExcel([
            'nombre' => $row[0],
            'apellido' => $row[1],
            'identificacion' => $row[2],
            'direccion' => $row[3],
            'telefono' => $row[4],
            'celular' => $row[5],
            'correo' => $row[6]
        ]);
    }
}
