public static function parse(
        string $csv,
        string $delimiter = ',',
        string $enclosure = '"',
        string $escape = '\\'
    ): Bag {
        $row = str_getcsv($csv, $delimiter, $enclosure, $escape);

        return Bag::from(array_map('trim', $row));
    }
public static function parse(
        string $csv,
        string $delimiter = ',',
        string $enclosure = '"',
        string $escape = '\\'
    ): Bag {
        $row = str_getcsv($csv, $delimiter, $enclosure, $escape);

        return Bag::from(array_map('trim', $row));
    }
public static function parse ( string $ csv , string $ delimiter = ',' , string $ enclosure = '"' , string $ escape = '\\' ) : Bag { $ row = str_getcsv ( $ csv , $ delimiter , $ enclosure , $ escape ) ; return Bag :: from ( array_map ( 'trim' , $ row ) ) ; }
Parse a CSV line into a Bag.

@param string $csv
@param string $delimiter
@param string $enclosure
@param string $escape

@return Bag
Parse a CSV line into a Bag .