| 1 | <?php  | 
            ||
| 5 | class CsvTableWriter implements TableWriter  | 
            ||
| 6 | { | 
            ||
| 7 | |||
| 8 | private $filename;  | 
            ||
| 9 | private $handle;  | 
            ||
| 10 | private $columns;  | 
            ||
| 11 | |||
| 12 | 	function __construct($filename) { | 
            ||
| 15 | |||
| 16 | 	function start($columns) { | 
            ||
| 21 | |||
| 22 | 	function finish() { | 
            ||
| 25 | |||
| 26 | 	function writeRecord($record) { | 
            ||
| 33 | |||
| 34 | 	private function mapFromColumns($record) { | 
            ||
| 42 | |||
| 43 | 	private function putRow($row) { | 
            ||
| 46 | |||
| 47 | 	private function open() { | 
            ||
| 57 | |||
| 58 | 	private function close() { | 
            ||
| 64 | }  | 
            ||
| 65 | 
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.