Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function __construct($path, $mode = 'r+', WriterInterface $writer = null) |
||
20 | { |
||
21 | if (is_null($writer)) { |
||
22 | $factory = new WriterFactory(); |
||
23 | $this->writer = $factory->create(); |
||
24 | } else { |
||
25 | $this->writer = $writer; |
||
26 | } |
||
27 | |||
28 | $this->writer->setDelimiter(','); |
||
29 | $this->writer->setEnclosure('"'); |
||
30 | $this->writer->setPath($path); |
||
31 | } |
||
32 | |||
65 | } |