SourceImageCollection
class SourceImageCollection implements Countable (View source)
Represents a collection of source images.
Methods
Constructor.
Return number in the collection.
Returns the total amount of items available in the API for the current listing.
Returns the cursor value, if any.
Returns the pagination/navigation links.
Return the source images in the collection.
Create a collection from the JSON data returned by the rokka.io API.
Details
__construct(array $sourceImages, int $total, array $links = [], null $cursor = null)
Constructor.
int
count()
Return number in the collection.
int
getTotal()
Returns the total amount of items available in the API for the current listing.
string
getCursor()
Returns the cursor value, if any.
array
getLinks()
Returns the pagination/navigation links.
SourceImage[]
getSourceImages()
Return the source images in the collection.
static SourceImageCollection
createFromJsonResponse(string $jsonString)
Create a collection from the JSON data returned by the rokka.io API.