WriterFactory
class WriterFactory (View source)
Get an instance of a CSV Writer.
Properties
| protected EscapeFormula | $formatter | ||
| protected string | $writerClass | 
Methods
                    Writer
                
                
                    createFromString(string $string)
        
                                            
                
            Create a CSV writer from a string.
                    Writer
                
                
                
            
                    Writer
                
                
                    createFromStream(resource $stream)
        
                                            
                
            Create a CSV writer from a stream.
                    Writer
                
                
                    createFromPath(string $path, string $open_mode = 'r+')
        
                                            
                
            Create a CSV writer from a string.
                    Writer
                
                
                    prepare(Writer $writer)
        
                                            
                
            Add extra details to a writer.
Details
        
                            
    __construct(EscapeFormula $formatter, string $writerClass = Writer::class)
        
    
    No description
        
                            Writer
    createFromString(string $string)
        
    
    Create a CSV writer from a string.
        
                            Writer
    createFromFileObject(SplFileObject $fileObject)
        
    
    Create a CSV writer from a file object.
        
                            Writer
    createFromStream(resource $stream)
        
    
    Create a CSV writer from a stream.
        
                            Writer
    createFromPath(string $path, string $open_mode = 'r+')
        
    
    Create a CSV writer from a string.
        
                    protected        Writer
    prepare(Writer $writer)
        
    
    Add extra details to a writer.