public function readElement()
  {
    $csv_line_data = $this->spl_file_object->fgetcsv();
    if($csv_line_data)
    {
      $csv_line_data[0] = $this->convertToUtf8($csv_line_data);
      if($this->isValidLine($csv_line_data))
      {
        $csv_line         = array_combine($this->columns_name, $csv_line_data);
        // we cast it to StdClass
        return (object)$csv_line;
      }
    }

    return false;
  }
public function readElement()
  {
    $csv_line_data = $this->spl_file_object->fgetcsv();
    if($csv_line_data)
    {
      $csv_line_data[0] = $this->convertToUtf8($csv_line_data);
      if($this->isValidLine($csv_line_data))
      {
        $csv_line         = array_combine($this->columns_name, $csv_line_data);
        // we cast it to StdClass
        return (object)$csv_line;
      }
    }

    return false;
  }
public function readElement ( ) { $ csv_line_data = $ this -> spl_file_object -> fgetcsv ( ) ; if ( $ csv_line_data ) { $ csv_line_data [ 0 ] = $ this -> convertToUtf8 ( $ csv_line_data ) ; if ( $ this -> isValidLine ( $ csv_line_data ) ) { $ csv_line = array_combine ( $ this -> columns_name , $ csv_line_data ) ; // we cast it to StdClass return ( object ) $ csv_line ; } } return false ; }
Reads a single element from the source
then return a Object instance

@return \StdClass|false object instance
Reads a single element from the source then return a Object instance