| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentCart\OpenSpout\Common\Helper\Escaper; |
| 4 |
|
| 5 |
/** |
| 6 |
* Provides functions to escape and unescape data for CSV files. |
| 7 |
*/ |
| 8 |
class CSV implements EscaperInterface |
| 9 |
{ |
| 10 |
/** |
| 11 |
* Escapes the given string to make it compatible with CSV. |
| 12 |
* |
| 13 |
* @codeCoverageIgnore |
| 14 |
* |
| 15 |
* @param string $string The string to escape |
| 16 |
* |
| 17 |
* @return string The escaped string |
| 18 |
*/ |
| 19 |
public function escape($string) |
| 20 |
{ |
| 21 |
return $string; |
| 22 |
} |
| 23 |
/** |
| 24 |
* Unescapes the given string to make it compatible with CSV. |
| 25 |
* |
| 26 |
* @codeCoverageIgnore |
| 27 |
* |
| 28 |
* @param string $string The string to unescape |
| 29 |
* |
| 30 |
* @return string The unescaped string |
| 31 |
*/ |
| 32 |
public function unescape($string) |
| 33 |
{ |
| 34 |
return $string; |
| 35 |
} |
| 36 |
} |
| 37 |
|