CSVLoader implements Closure, Loader, FileLoader
FinalYes
Interfaces
- Closure
- Loader
- FileLoader
Methods
- __construct() : mixed
- closure() : void
- destination() : Path
- load() : void
- withDateTimeFormat() : self
- withEnclosure() : self
- withEscape() : self
- withHeader() : self
- withNewLineSeparator() : self
- withSeparator() : self
- write() : void
Methods
__construct()
public
__construct(Path $path) : mixed
Parameters
- $path : Path
closure()
public
closure(FlowContext $context) : void
Parameters
- $context : FlowContext
destination()
public
destination() : Path
Return values
Pathload()
public
load(Rows $rows, FlowContext $context) : void
Parameters
- $rows : Rows
- $context : FlowContext
withDateTimeFormat()
public
withDateTimeFormat(string $dateTimeFormat) : self
Parameters
- $dateTimeFormat : string
Return values
selfwithEnclosure()
public
withEnclosure(string $enclosure) : self
Parameters
- $enclosure : string
Return values
selfwithEscape()
public
withEscape(string $escape) : self
Parameters
- $escape : string
Return values
selfwithHeader()
public
withHeader(bool $header) : self
Parameters
- $header : bool
Return values
selfwithNewLineSeparator()
public
withNewLineSeparator(string $newLineSeparator) : self
Parameters
- $newLineSeparator : string
Return values
selfwithSeparator()
public
withSeparator(string $separator) : self
Parameters
- $separator : string
Return values
selfwrite()
public
write(Rows $nextRows, array<string|int, mixed> $headers, FlowContext $context, array<string|int, Partition> $partitions, RowsNormalizer $normalizer) : void
Parameters
- $nextRows : Rows
- $headers : array<string|int, mixed>
- $context : FlowContext
- $partitions : array<string|int, Partition>
- $normalizer : RowsNormalizer