public function paginateImages ($offset = 0, $count = 20)
    {
        $json = $this->paginate(MediaType::IMAGE, $offset, $count);
        $resultSet = [];
        
        foreach ($json->item as $item) {
            $image = new Paginated\Image($item->media_id, $item->name, $item->update_time);
            
            if (isset($item->url) && strlen($item->url) > 0) {
                $image = $image->withURL($item->url);
            }
            
            $resultSet[] = $image;
        }

        return new Paginated\ImageResultSet($resultSet, $json->total_count, $offset);
    }
public function paginateImages ($offset = 0, $count = 20)
    {
        $json = $this->paginate(MediaType::IMAGE, $offset, $count);
        $resultSet = [];
        
        foreach ($json->item as $item) {
            $image = new Paginated\Image($item->media_id, $item->name, $item->update_time);
            
            if (isset($item->url) && strlen($item->url) > 0) {
                $image = $image->withURL($item->url);
            }
            
            $resultSet[] = $image;
        }

        return new Paginated\ImageResultSet($resultSet, $json->total_count, $offset);
    }
public function paginateImages ( $ offset = 0 , $ count = 20 ) { $ json = $ this -> paginate ( MediaType :: IMAGE , $ offset , $ count ) ; $ resultSet = [ ] ; foreach ( $ json -> item as $ item ) { $ image = new Paginated \ Image ( $ item -> media_id , $ item -> name , $ item -> update_time ) ; if ( isset ( $ item -> url ) && strlen ( $ item -> url ) > 0 ) { $ image = $ image -> withURL ( $ item -> url ) ; } $ resultSet [ ] = $ image ; } return new Paginated \ ImageResultSet ( $ resultSet , $ json -> total_count , $ offset ) ; }
Paginates through images 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\ImageResultSet
@throws Exception
Paginates through images stored on the WeChat servers .