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

        $collectionsArray = self::getArray($collections->getBody(), get_called_class());

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

        $collectionsArray = self::getArray($collections->getBody(), get_called_class());

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

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