$size
$size : integer
The maximum amount of elements on that page
A page object to define page sizes and the like.
For all API calls that return multiple elements co*pilot returns a page. A page contains 0 to n elements and some information about the page that can be used for pagination. Whenever a call is made with a page object, the page object will be populated with the information for that call.
Example: $page = new Page(30, 1); $client->getAgencyArtists($page);
The page will now contain the information about how much artists are available at all ($totalElements), how the elements are sorted ($sort) and how many pages can be retrieved with that page size. To load the next page you would simply call:
$client->getAgenyArtists(new Page(30, 2));
which in turn will return the next 30 artists from page 2.