original_string: public function setPagination($nextURL = null, $previousURL = null, $firstURL = null, $lastURL = null)
      {
          if (empty($nextURL) && empty($previousURL) && empty($firstURL) && empty($lastURL))
              throw new \LogicException('At least one URL must be specified for pagination to work.');
  
          if (!empty($nextURL))
              $this->setAtomLink($nextURL, 'next');
  
          if (!empty($previousURL))
              $this->setAtomLink($previousURL, 'previous');
  
          if (!empty($firstURL))
              $this->setAtomLink($firstURL, 'first');
  
          if (!empty($lastURL))
              $this->setAtomLink($lastURL, 'last');
  
          return $this;
      }
code: public function setPagination($nextURL = null, $previousURL = null, $firstURL = null, $lastURL = null)
      {
          if (empty($nextURL) && empty($previousURL) && empty($firstURL) && empty($lastURL))
              throw new \LogicException('At least one URL must be specified for pagination to work.');
  
          if (!empty($nextURL))
              $this->setAtomLink($nextURL, 'next');
  
          if (!empty($previousURL))
              $this->setAtomLink($previousURL, 'previous');
  
          if (!empty($firstURL))
              $this->setAtomLink($firstURL, 'first');
  
          if (!empty($lastURL))
              $this->setAtomLink($lastURL, 'last');
  
          return $this;
      }
code_tokens: public function setPagination ( $ nextURL = null , $ previousURL = null , $ firstURL = null , $ lastURL = null ) { if ( empty ( $ nextURL ) && empty ( $ previousURL ) && empty ( $ firstURL ) && empty ( $ lastURL ) ) throw new \ LogicException ( 'At least one URL must be specified for pagination to work.' ) ; if ( ! empty ( $ nextURL ) ) $ this -> setAtomLink ( $ nextURL , 'next' ) ; if ( ! empty ( $ previousURL ) ) $ this -> setAtomLink ( $ previousURL , 'previous' ) ; if ( ! empty ( $ firstURL ) ) $ this -> setAtomLink ( $ firstURL , 'first' ) ; if ( ! empty ( $ lastURL ) ) $ this -> setAtomLink ( $ lastURL , 'last' ) ; return $ this ; }
docstring: Set the URLs for feed pagination.
  
  See RFC 5005, chapter 3. At least one page URL must be specified.
  
  @param   string $nextURL The URL to the next page of this feed. Optional.
  @param   string $previousURL The URL to the previous page of this feed. Optional.
  @param   string $firstURL The URL to the first page of this feed. Optional.
  @param   string $lastURL The URL to the last page of this feed. Optional.
  @link    http://tools.ietf.org/html/rfc5005#section-3
  @return  self
  @throws  \LogicException if none of the parameters are set.
docstring_tokens: Set the URLs for feed pagination .