Skip to content

[Proposal]: Add head(), last() and tail() methods to Rows #1791

@norberttech

Description

@norberttech

Describe the Proposal

src/core/etl/src/Flow/ETL/Rows.php represents strongly types Rows that are used by Flow to carry and process data.

We need to add two missing methods allowing to access the end of Rows, head, last and tail.

Head - return number of rows from the beginning
Last - just return the last row
Tail - return number of rows from the end

API Adjustments

  • Rows::last() : ?Row
  • Rows::tail(int $count) : Rows
  • Rows::head(int $count) : Rows

Are you intenting to also work on proposed change?

Yes

Are you interested in sponsoring this change?

None

Integration & Dependencies

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions