public function paginate(array $data, $page, $limit , $url, $params = array())
    {
        $pager = $this->makePagerFromArray($data, $page, $limit);

        return $this->factory->createCollectionFromPager($pager, $url, $params);
    }
public function paginate(array $data, $page, $limit , $url, $params = array())
    {
        $pager = $this->makePagerFromArray($data, $page, $limit);

        return $this->factory->createCollectionFromPager($pager, $url, $params);
    }
public function paginate ( array $ data , $ page , $ limit , $ url , $ params = array ( ) ) { $ pager = $ this -> makePagerFromArray ( $ data , $ page , $ limit ) ; return $ this -> factory -> createCollectionFromPager ( $ pager , $ url , $ params ) ; }
Handles creating a pager and turning it into a collection representation

@param       $data
@param       $page
@param       $limit
@param       $url
@param array $params
@return PaginatedCollection
Handles creating a pager and turning it into a collection representation