1 | <?php |
||
9 | class EasyCsvWriterAdapter |
||
10 | { |
||
11 | /** @var Writer|WriterForPhp5Dot3|WriterInterface */ |
||
12 | private $writer; |
||
13 | |||
14 | /** |
||
15 | * @param string $path |
||
16 | * @param string $mode - is not used |
||
17 | * @param null|WriterInterface $writer - optional |
||
18 | */ |
||
19 | public function __construct($path, $mode = 'r+', WriterInterface $writer = null) |
||
32 | |||
33 | /** |
||
34 | * @param string $delimiter |
||
35 | */ |
||
36 | public function setDelimiter($delimiter) |
||
40 | |||
41 | /** |
||
42 | * @param string $enclosure |
||
43 | */ |
||
44 | public function setEnclosure($enclosure) |
||
48 | |||
49 | /** |
||
50 | * @param mixed $row |
||
51 | * @return false|int |
||
52 | */ |
||
53 | public function writeRow($row) |
||
57 | |||
58 | /** |
||
59 | * @param array $array |
||
60 | */ |
||
61 | public function writeFromArray(array $array) |
||
65 | } |