code: protected function buildLimit()/*# : array */
      {
          $result = [];
          if (!empty($this->clause_limit)) {
              $res = [];
  
              if ($this->clause_limit[0]) {
                  $res[] = 'LIMIT ' . $this->clause_limit[0];
              }
  
              if ($this->clause_limit[1]) {
                  $res[] = 'OFFSET ' . $this->clause_limit[1];
              }
  
              if (!empty($res)) {
                  $result[] = join(' ', $res);
              }
          }
          return $result;
      }
docs: Build LIMIT
  
  @return array
  @access protected