Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Added skip method to Result #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/Result/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,14 @@ public function position()
// TODO: Implement position() method.
}

public function skip()
/**
* @param int $offset
* @param null $length
* @return array|RecordView[]
*/
public function skip(int $offset, $length = null)
{
// TODO: Implement skip() method.
return array_slice($this->records, $offset, $length);
}

private function array_map_deep(array $array)
Expand Down