original_string: public function paginate(array $data, $page, $limit , $url, $params = array())
      {
          $pager = $this->makePagerFromArray($data, $page, $limit);
  
          return $this->factory->createCollectionFromPager($pager, $url, $params);
      }
code: public function paginate(array $data, $page, $limit , $url, $params = array())
      {
          $pager = $this->makePagerFromArray($data, $page, $limit);
  
          return $this->factory->createCollectionFromPager($pager, $url, $params);
      }
code_tokens: public function paginate ( array $ data , $ page , $ limit , $ url , $ params = array ( ) ) { $ pager = $ this -> makePagerFromArray ( $ data , $ page , $ limit ) ; return $ this -> factory -> createCollectionFromPager ( $ pager , $ url , $ params ) ; }
docstring: Handles creating a pager and turning it into a collection representation
  
  @param       $data
  @param       $page
  @param       $limit
  @param       $url
  @param array $params
  @return PaginatedCollection
docstring_tokens: Handles creating a pager and turning it into a collection representation