| Conditions | 4 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function __construct(string $delimiter = ',', string $enclosure = '"', string $escapeChar = '\\') |
||
| 30 | { |
||
| 31 | if (strlen($delimiter) !== 1) { |
||
| 32 | throw new \InvalidArgumentException('$delimiter must be a single character string'); |
||
| 33 | } |
||
| 34 | |||
| 35 | if (strlen($enclosure) !== 1) { |
||
| 36 | throw new \InvalidArgumentException('$enclosure must be a single character string'); |
||
| 37 | } |
||
| 38 | |||
| 39 | if (strlen($escapeChar) !== 1) { |
||
| 40 | throw new \InvalidArgumentException('$escapeChar must be a single character string'); |
||
| 41 | } |
||
| 42 | |||
| 43 | $this->delimiter = $delimiter; |
||
| 44 | $this->enclosure = $enclosure; |
||
| 45 | $this->escapeChar = $escapeChar; |
||
| 46 | } |
||
| 47 | |||
| 79 |