private function paginateRecords(ActiveQueryInterface $query, $pageNumber, $count)
    {
        $offset = ($pageNumber - 1) * $count;
        $limit = $count;

        return $query->offset($offset)->limit($limit);
    }
private function paginateRecords(ActiveQueryInterface $query, $pageNumber, $count)
    {
        $offset = ($pageNumber - 1) * $count;
        $limit = $count;

        return $query->offset($offset)->limit($limit);
    }
private function paginateRecords ( ActiveQueryInterface $ query , $ pageNumber , $ count ) { $ offset = ( $ pageNumber - 1 ) * $ count ; $ limit = $ count ; return $ query -> offset ( $ offset ) -> limit ( $ limit ) ; }
Paginate the results of the query.

@param ActiveQueryInterface $query
@param int $pageNumber
@param int $count

@return ActiveQueryInterface
Paginate the results of the query .