user_id = $user_id; } /** * @param array $row */ public function model(array $row) { if ($this->index == 1) { $this->index += 1; return; } if (!empty($row[1]) && !empty($row[2]) && !empty($row[3])) { $data = [ 'model_name' => $row[1], 'admin_user_id' => $this->user_id, 'parking_space_number' => $row[2], 'parking_space_type' => $row[3] ]; $service = new ParkingPatternService(new OperationLogService()); $service->saveModel($data); } } }