main/app/API/Transfer/Adapter/CsvAdapter.php
public function decodeSchema($content, Explanation $explanation)
    {
        $data = [];
        $lines = str_getcsv($content, PHP_EOL);
        $header = array_shift($lines);
        $headers = array_filter(
          str_getcsv($header, ';'),
          function ($header) {
              return '' !== $header;
          }
        );

        foreach ($lines as $line) {
            $properties = str_getcsv($line, ';');
            $data[] = $this->buildObjectFromLine($properties, $headers, $explanation);
        }

        return $data;
    }
public function decodeSchema($content, Explanation $explanation)
    {
        $data = [];
        $lines = str_getcsv($content, PHP_EOL);
        $header = array_shift($lines);
        $headers = array_filter(
          str_getcsv($header, ';'),
          function ($header) {
              return '' !== $header;
          }
        );

        foreach ($lines as $line) {
            $properties = str_getcsv($line, ';');
            $data[] = $this->buildObjectFromLine($properties, $headers, $explanation);
        }

        return $data;
    }
public function decodeSchema ( $ content , Explanation $ explanation ) { $ data = [ ] ; $ lines = str_getcsv ( $ content , PHP_EOL ) ; $ header = array_shift ( $ lines ) ; $ headers = array_filter ( str_getcsv ( $ header , ';' ) , function ( $ header ) { return '' !== $ header ; } ) ; foreach ( $ lines as $ line ) { $ properties = str_getcsv ( $ line , ';' ) ; $ data [ ] = $ this -> buildObjectFromLine ( $ properties , $ headers , $ explanation ) ; } return $ data ; }
Create a php array object from the schema according to the data passed on.
Each line is a new object.

@param string      $content
@param Explanation $explanation
Create a php array object from the schema according to the data passed on . Each line is a new object .