Flow PHP

RowMerger

Read onlyYes
FinalYes

Methods

__construct()  : mixed
merge()  : Rows
Pair-aligned: row i of the result is left row i merged with right row i, the columns in $output's order and names, each keeping its own definition; a column a batch lacks is left out.

Methods

__construct()

public __construct(Schema $output, array<int, string> $left, array<int, string> $right) : mixed
Parameters
$output : Schema
$left : array<int, string>

the left column each leading output column is gathered from

$right : array<int, string>

the right column each following output column is gathered from, renamed by $output

merge()

Pair-aligned: row i of the result is left row i merged with right row i, the columns in $output's order and names, each keeping its own definition; a column a batch lacks is left out.

public merge(Rows $left, Rows $right) : Rows
Parameters
$left : Rows
$right : Rows
Return values
Rows
On this page

Search results