code: private function getPage($limit, $offset)
      {
          $page = 1.0;
  
          if (null !== $offset) {
              $page = (floor($offset / $limit) + 1);
          }
  
          return (int) $page;
      }
docs: @param int $limit
  @param int $offset
  
  @return int