class ProcessPoolResults implements ArrayAccess, IteratorAggregate

Methods

__construct(array $results = [])

Create a new process pool result set.

bool
successful()

Determine if all of the processes in the pool were successful.

bool
failed()

Determine if any of the processes in the pool failed.

collect()

Get the results as a collection.

bool
offsetExists(mixed $offset)

Determine if the given array offset exists.

mixed
offsetGet(mixed $offset)

Get the result at the given offset.

void
offsetSet(mixed $offset, mixed $value)

Set the result at the given offset.

void
offsetUnset(mixed $offset)

Unset the result at the given offset.

getIterator()

Get an iterator for the results.

Details

at line 24
__construct(array $results = [])

Create a new process pool result set.

Parameters

array $results

the results of the processes

at line 31
bool successful()

Determine if all of the processes in the pool were successful.

Return Value

bool

at line 39
bool failed()

Determine if any of the processes in the pool failed.

Return Value

bool

at line 47
Collection collect()

Get the results as a collection.

Return Value

Collection

at line 55
bool offsetExists(mixed $offset)

Determine if the given array offset exists.

Parameters

mixed $offset

Return Value

bool

at line 63
mixed offsetGet(mixed $offset)

Get the result at the given offset.

Parameters

mixed $offset

Return Value

mixed

at line 71
void offsetSet(mixed $offset, mixed $value)

Set the result at the given offset.

Parameters

mixed $offset
mixed $value

Return Value

void

at line 79
void offsetUnset(mixed $offset)

Unset the result at the given offset.

Parameters

mixed $offset

Return Value

void

at line 89
Traversable getIterator()

Get an iterator for the results.

Return Value

Traversable