1 | <?php |
||
7 | class CsvUtils |
||
8 | { |
||
9 | /** |
||
10 | * Ensure that the provided data is a string. |
||
11 | * |
||
12 | * @param string|array $data The data to convert to a string. |
||
13 | * @return string |
||
14 | */ |
||
15 | public static function toString($data) |
||
22 | |||
23 | /** |
||
24 | * Convert a string to a csv. |
||
25 | */ |
||
26 | public static function csvEscape(array $data, $delimiter = ',') |
||
35 | |||
36 | /** |
||
37 | * Return a specific named annotation for this command. |
||
38 | * |
||
39 | * @param string|array $data The data to convert to an array. |
||
40 | * @return array |
||
41 | */ |
||
42 | public static function toList($data) |
||
49 | } |
||
50 |