original_string: public function addPaginator($rows = 25, $options = null, $class = null)
      {
          // add only once
          // @todo decide, maybe we should destroy and recreate to keep last one
          if ($this->paginator) {
              return $this->paginator;
          }
  
          $this->paginator = $this->add($class ?: $this->paginator_class, $options);
          /** @type Paginator $this->paginator */
          $this->paginator->setRowsPerPage($rows);
  
          return $this->paginator;
      }
code: public function addPaginator($rows = 25, $options = null, $class = null)
      {
          // add only once
          // @todo decide, maybe we should destroy and recreate to keep last one
          if ($this->paginator) {
              return $this->paginator;
          }
  
          $this->paginator = $this->add($class ?: $this->paginator_class, $options);
          /** @type Paginator $this->paginator */
          $this->paginator->setRowsPerPage($rows);
  
          return $this->paginator;
      }
code_tokens: public function addPaginator ( $ rows = 25 , $ options = null , $ class = null ) { // add only once // @todo decide, maybe we should destroy and recreate to keep last one if ( $ this -> paginator ) { return $ this -> paginator ; } $ this -> paginator = $ this -> add ( $ class ? : $ this -> paginator_class , $ options ) ; /** @type Paginator $this->paginator */ $ this -> paginator -> setRowsPerPage ( $ rows ) ; return $ this -> paginator ; }
docstring: Adds paginator to the grid.
  
  @param int    $rows    row count per page
  @param array  $options optional options array
  @param string $class   optional paginator class name
  
  @return Paginator
  
  @todo decide, maybe we need to add $spot optional template spot like in addQuickSearch()
docstring_tokens: Adds paginator to the grid .