final class ReturningProjection

A dialect-neutral projection of mutation rows returned to the client.

Type Aliases§

Row = import from TableDefinition

Methods§

public function __construct(private list<array{source: string|null, output: string|null}> $items)

Binds a projection to the items it was written as.

Parameters

$itemslist<array{source: string|null, output: string|null}>
public function project(array<int, Row> $rows): list<Row>

Parameters

$rowsarray<int, Row>

Returns

list<Row>
Calls 1
public function items(): list<array{source: string|null, output: string|null}>

Returns

list<array{source: string|null, output: string|null}>

Private surface 1§

Implementation details, listed for orientation only.

private list<array{source: string|null, output: string|null}> $items

Test cases 4§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 3
Other tests reaching this symbol 1

Relations§

Static calls 2
Type declarations 5