SourceImageCollection
class SourceImageCollection implements Countable, Iterator (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.
No description
No description
No description
No description
No description
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|null
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.
SourceImage
current()
No description
void
next()
No description
int
key()
No description
bool
valid()
No description
void
rewind()
No description