public function paginateNews ($offset = 0, $count = 20)
    {
        $json = $this->paginate(MediaType::ARTICLE, $offset, $count);
        $resultSet = [];
        
        foreach ($json->item as $item) {
            $resultSet[] = $this->expandNews(
                $item->content->news_item,
                new Paginated\News($item->media_id, $item->update_time)
            );
        }

        return new Paginated\NewsResultSet($resultSet, $json->total_count, $offset);
    }
public function paginateNews ($offset = 0, $count = 20)
    {
        $json = $this->paginate(MediaType::ARTICLE, $offset, $count);
        $resultSet = [];
        
        foreach ($json->item as $item) {
            $resultSet[] = $this->expandNews(
                $item->content->news_item,
                new Paginated\News($item->media_id, $item->update_time)
            );
        }

        return new Paginated\NewsResultSet($resultSet, $json->total_count, $offset);
    }
public function paginateNews ( $ offset = 0 , $ count = 20 ) { $ json = $ this -> paginate ( MediaType :: ARTICLE , $ offset , $ count ) ; $ resultSet = [ ] ; foreach ( $ json -> item as $ item ) { $ resultSet [ ] = $ this -> expandNews ( $ item -> content -> news_item , new Paginated \ News ( $ item -> media_id , $ item -> update_time ) ) ; } return new Paginated \ NewsResultSet ( $ resultSet , $ json -> total_count , $ offset ) ; }
Paginates through news items stored on the WeChat servers.

@param int $offset - The offset from which to start showing items.
@param int $count - The number of items to show.

@return Paginated\NewsResultSet
@throws Exception
Paginates through news items stored on the WeChat servers .