class OperationCollection implements Countable, Iterator (View source)

Represents a collection of image transformation operations in a stack.

Methods

__construct(array $operations)

Constructor.

int
count()

Return number of operations.

getOperations()

Return operations.

createFromJsonResponse(string $jsonString)

Create a collection from the JSON data returned by the rokka.io API.

current()

No description

void
next()

No description

int
key()

No description

bool
valid()

No description

void
rewind()

No description

Details

__construct(array $operations)

Constructor.

Parameters

array $operations

Array of operations

int count()

Return number of operations.

Return Value

int

Operation[] getOperations()

Return operations.

Return Value

Operation[]

static OperationCollection createFromJsonResponse(string $jsonString)

Create a collection from the JSON data returned by the rokka.io API.

Parameters

string $jsonString

JSON as a string

Return Value

OperationCollection

Operation current()

No description

Return Value

Operation

void next()

No description

Return Value

void

int key()

No description

Return Value

int

bool valid()

No description

Return Value

bool

void rewind()

No description

Return Value

void