public static function all($page = 1, $per_page = 10)
    {
        $curatedBatches = self::get(
            "/collections/curated",
            ['query' => ['page' => $page, 'per_page' => $per_page]]
        );

        $curatedBatchesArray = self::getArray($curatedBatches->getBody(), get_called_class());

        return new ArrayObject($curatedBatchesArray, $curatedBatches->getHeaders());
    }
public static function all($page = 1, $per_page = 10)
    {
        $curatedBatches = self::get(
            "/collections/curated",
            ['query' => ['page' => $page, 'per_page' => $per_page]]
        );

        $curatedBatchesArray = self::getArray($curatedBatches->getBody(), get_called_class());

        return new ArrayObject($curatedBatchesArray, $curatedBatches->getHeaders());
    }
public static function all ( $ page = 1 , $ per_page = 10 ) { $ curatedBatches = self :: get ( "/collections/curated" , [ 'query' => [ 'page' => $ page , 'per_page' => $ per_page ] ] ) ; $ curatedBatchesArray = self :: getArray ( $ curatedBatches -> getBody ( ) , get_called_class ( ) ) ; return new ArrayObject ( $ curatedBatchesArray , $ curatedBatches -> getHeaders ( ) ) ; }
Retrieve all curated batches for a given page

@param  integer $page Page from which the curated batches need to be retrieved
@param  integer $per_page Number of elements on a page
@return ArrayObject of CuratedBatch
Retrieve all curated batches for a given page