From 58197c7fcc67d24c84eabee571ddb39c636f7f69 Mon Sep 17 00:00:00 2001 From: Taras Date: Tue, 13 Aug 2019 09:56:44 +0300 Subject: [PATCH] added skip method to Result --- src/Result/Result.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Result/Result.php b/src/Result/Result.php index 54c9e2d..0abda76 100644 --- a/src/Result/Result.php +++ b/src/Result/Result.php @@ -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)