Method | Description | |
---|---|---|
__construct ( array $options = [] ) | ||
addConverter ( Plum\Plum\Converter\ConverterInterface | callable | array $element ) : |
||
addFilter ( array | callable | Plum\Plum\Filter\FilterInterface $element ) : |
||
addWriter ( Plum\Plum\Writer\WriterInterface | array $element ) : |
||
getConverters ( ) : |
||
getFilters ( ) : |
||
getPipeline ( string | null $type = null ) : |
||
getWriters ( ) : |
||
process ( Plum\Plum\Reader\ReaderInterface[] | Plum\Plum\Reader\ReaderInterface $readers ) : |
Method | Description | |
---|---|---|
addPipe ( |
Inserts an element into the pipeline at the given position. | |
convertItem ( mixed $item, |
Applies the given converter to the given item either if no filter is given or if the filter returns true. | |
convertItemValue ( mixed $item, |
Applies the given converter to the given field in the given item if no filter is given or if the filters returns true for the field. | |
finishWriters ( |
||
prepareWriters ( |
||
processItem ( mixed $item, |
||
processReader ( Plum\Plum\Reader\ReaderInterface $reader, |
||
writeItem ( mixed $item, |
Writes the given item to the given writer if the no filter is given or the filter returns true. |
public addConverter ( Plum\Plum\Converter\ConverterInterface | callable | array $element ) : |
||
$element | Plum\Plum\Converter\ConverterInterface | callable | array | |
return | $this |
protected addPipe ( |
||
$pipe | ||
return |
protected convertItem ( mixed $item, |
||
$item | mixed | |
$pipe | ||
return | mixed |
protected convertItemValue ( mixed $item, |
||
$item | mixed | |
$pipe | ||
return | mixed |
protected finishWriters ( |
||
$writers |
public getConverters ( ) : |
||
return |
public getPipeline ( string | null $type = null ) : |
||
$type | string | null | |
return |
protected prepareWriters ( |
||
$writers |
public process ( Plum\Plum\Reader\ReaderInterface[] | Plum\Plum\Reader\ReaderInterface $readers ) : |
||
$readers | Plum\Plum\Reader\ReaderInterface[] | Plum\Plum\Reader\ReaderInterface | |
return |
protected processItem ( mixed $item, |
||
$item | mixed | |
$result |
protected processReader ( Plum\Plum\Reader\ReaderInterface $reader, |
||
$reader | Plum\Plum\Reader\ReaderInterface | |
$result |