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